Page MenuHomePhabricator

Items not showing up in category they have been added to
Closed, DuplicatePublic


Recently when categorizing items on Commons, sometimes items added to a category don't show up in that category. It seems to happen about 1% of the time. For example, has been added to Category:Taken with KDDI Sharp SH009, but when viewing that category the file isn't there (12 hours later). It could be fixed by null-editing the file, but I don't know any way to discover such files that require null editing, and it shouldn't be necessary.

Event Timeline

Ghouston created this task.Nov 15 2015, 1:03 AM
Ghouston raised the priority of this task from to Needs Triage.
Ghouston updated the task description. (Show Details)
Ghouston added a project: Commons.
Ghouston added a subscriber: Ghouston.
Restricted Application added subscribers: StudiesWorld, Steinsplitter, Aklapper. · View Herald TranscriptNov 15 2015, 1:03 AM
zhuyifei1999 moved this task from Incoming to Backlog on the Commons board.Nov 15 2015, 6:01 AM
zhuyifei1999 added a subscriber: zhuyifei1999.
RP88 added a subscriber: RP88.Nov 15 2015, 9:15 AM
Bawolff added a subscriber: Bawolff.

My theory is that, its a race condition with slave lag. LinksUpdate::getAsJobSpecification() doesn't set masterPos flag, as a result, Revision::newFromTitle( $title, false, Revision::READ_NORMAL ); might get a stale page_latest field from the db, and refreshLinksJob will run on the old version of the page.

Being a race condition would fit with it only happening on a small percentage of pages.

Bawolff set Security to None.Nov 15 2015, 11:41 PM
Bawolff added a subscriber: aaron.