Page MenuHomePhabricator

Out-of-sync data in the Wikidata database
Open, Needs TriagePublic

Description

User story:
Using Quarry on the Wikidata database, I notice the database is not always accurate.

Problem:
After saving an edit, the alias still had the old value according to the database. There are potentially many redirected Items which, according to the database, still have labels, descriptions and/or aliases.

Examples:

Previous discussion:
See discussion on Wikidata:Report a technical problem#Database out of sync

Event Timeline

taavi renamed this task from Quarry showing out-of-sync data in the Wikidata database to Out-of-sync data in the Wikidata database.Mar 7 2023, 11:51 AM
taavi removed a project: Quarry.

Devs: Do we know where in the chain the problem is? Is it that our primary term store still has the terms when a redirect is created? Or is it from there to the replica? Or somewhere else?

@Lydia_Pintscher, we will take a look at this asap to determine the source.

a quarry for Items that are redirects but do have terms: https://quarry.wmcloud.org/query/71784

At least the first item mentioned there also has terms on the production database:

lucaswerkmeister-wmde@mwdebug2002:~$ mwscript sql wikidatawiki
> SELECT COUNT(*) FROM wbt_item_terms WHERE wbit_item_id = 10000336;
stdClass Object
(
    [COUNT(*)] => 129
)

> SELECT page_is_redirect FROM page WHERE page_namespace = 0 AND page_title = 'Q10000336';
stdClass Object
(
    [page_is_redirect] => 1
)

So this is probably a general Wikibase issue and nothing specific to the cloud replicas. Possibly the same as T309445: [Investigation] Terms storage missing most item labels after merge, resulting in item IDs being shown.

This comment was removed by Bdijkstra.