Last modified: 2014-11-10 11:42:14 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 T44716, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42716 - updater fails if db tables missing but entities already present.
updater fails if db tables missing but entities already present.
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on: 42717
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-05 10:24 UTC by Daniel Kinzler
Modified: 2014-11-10 11:42 UTC (History)
4 users (show)

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


Attachments

Description Daniel Kinzler 2012-12-05 10:24:34 UTC
The updater fails if the wb_terms table is missing, but there are already entities stored on some wiki pages. The reason is that SqlStore::doSchemaUpdates will (correctly) register Wikibase.sql for execution if wb_tables is missing, but then calls SqlStore::rebuild() before Wikibase.sql actually got executed. This causes rebuild() to fail, because the tables that it's trying to populate are not there yet.

This is triggered by a rare edge case - usually, the database tables will be present if there are already entities (creating entities would be impossible without them). So the state that triggers this error can only be the result of tempering or failure in the database (in my case: a result of trying to debug the updater itself).

The solution would be to wrap SqlStore::rebuild() in a maintenance script (we need that anyway) and register it for later execution, instead of executing it right away.
Comment 1 Lydia Pintscher 2014-11-10 11:42:14 UTC
Let's be realistic. Not going to happen...

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


Navigation
Links