Last modified: 2014-01-29 02:38:47 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61941, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59941 - Flow: in default config posts don't appear
Flow: in default config posts don't appear
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Flow (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-11 10:33 UTC by spage
Modified: 2014-01-29 02:38 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2014-01-11 10:33:22 UTC
If you add Flow to MediaWiki-Vagrant, and do no other configuration, you can add topics and posts, but when you later redisplay a topic, e.g. click its permalink icon, you don't see any of its posts!  Shahyar, wctaiwan and I all discovered this.

The post does show up in the topic history and the post text is in the flow_revision table, so this is probably a caching issue.  Setting $wgFlowUseMemcache = false fixes it (I think it makes Flow use HashBagOStuff). So maybe false should be Flow's default, and overridden by a WMF wmf-config setting.

Another wrinkle is MediaWiki-Vagrant does enable a cache, but it is $wgMainCacheType = 'redis'.  So $wgFlowUseMemcache = true should work, since it makes Flow use $wgMemc that ends up being RedisBagOStuff.  I'm not sure why it's failing.

Maybe Flow should be flexible and have a $wgFlowCacheType that defaults to CACHE_ANYTHING or CACHE_MEMCACHE, the way system caches like $wgParserCache do.  Or it could use $wgMemc all the time, since that misnamed function always does something: it'll use MemcachedPhpBagOStuff or RedisBagOStuff if they're configured, otherwise it falls back to EmptyBagOStuff (dummy cache).
Comment 1 Bingle 2014-01-11 10:36:28 UTC
The WMF core features team tracks this bug on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/flow/cards/714, but people from the community are welcome to contribute here and in Gerrit.
Comment 2 Gerrit Notification Bot 2014-01-14 10:33:58 UTC
Change 107348 had a related patch set uploaded by Matthias Mullie:
Don't use complex datatypes as CAS tokens

https://gerrit.wikimedia.org/r/107348
Comment 3 Matthias Mullie 2014-01-14 10:37:19 UTC
This was quite a nasty bug, that could only occur in a couple of caches (that have no native CAS)

Bottom line: for caches with non-native CAS, CAS tokens (to confirm if data in cache can reliably be merged without concurrency) are based on the value stored.
When saving, this token is compared with what's currently in cache.

Since it was based on an object, the cache data was actually the same, but was in 2 objects, which did not ===

More details in commit msg of https://gerrit.wikimedia.org/r/107348
Comment 4 Gerrit Notification Bot 2014-01-14 15:45:46 UTC
Change 107380 had a related patch set uploaded by Matthias Mullie:
Don't use complex datatypes as CAS tokens

https://gerrit.wikimedia.org/r/107380
Comment 5 Gerrit Notification Bot 2014-01-14 15:47:34 UTC
Change 107348 abandoned by Matthias Mullie:
Don't use complex datatypes as CAS tokens

Reason:
See https://gerrit.wikimedia.org/r/#/c/107380/

https://gerrit.wikimedia.org/r/107348
Comment 6 Gerrit Notification Bot 2014-01-14 19:26:05 UTC
Change 107380 merged by jenkins-bot:
Don't use complex datatypes as CAS tokens

https://gerrit.wikimedia.org/r/107380
Comment 7 wctaiwan 2014-01-29 02:38:47 UTC
I tested with my existing Vagrant installation and a pristine box (vagrant destroy followed by vagrant up) with $wgFlowUseMemcache not set. In both cases, I was able to add comments and have them persist, so I'm marking this as fixed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links