Pilot users reported stale data and non-deterministic response payloads.
Some WDQS v2 indexes has drifted and this manifests with inconsistent responses across requests.
Context
We run multiple instances of WDQS (and QLever databases) behind a load balancer. Each receives real-time updates
independently. We don't pin clients to specific hosts (caveat: keepalive can temporarily pin connections),
and requests are round-robin. Each query to https://query-next.wikidata.org can, in principle, be answered
by a different WDQS and QLever host.
Next to real-time updates, we plan to reconcile weekly from the RDF exports, specifically to resolve
consistency issues. This reconciliation capability was deployed to our staging environment (internal, not exposed
to public traffic) but has yet to be deployed to the query-next deployments.
Problem
Currently we run on a relatively old index, built in July 2026:
$ runuser@wdqs-main-external-backend-0:/srv/data$ ls 2026-07-03_23-11-22 current lost+found
Our telemetry indicates no obvious data loss from the update stream, but throughout August and September we did several iterations
on the update (and qlever-index-rebuild of in-memory delta triple updates) code path, so it is safe to assume some PODs might have drifted by now.
Reported queries
SELECT ?item ?ror ?deprecated WHERE { ?item p:P6782 ?stmt . ?stmt ps:P6782 ?ror; wikibase:rank ?rank . BIND(?rank = wikibase:DeprecatedRank AS ?deprecated) }AC
- Identify which QLever POD is stale
- document the troubleshooting process in a runbook on Wikitech. This is a good learning experience (in review).
- Update the index on WDQS nodes. We build weekly, but don't ship.
- After an index update, verify data is no longer stale. Test queries to be provided and coordinated with pilot users.
Follow up
- We need parity with the triple count dashboard and WDQS node data drift alerting we have in place for Blazegraph.
- Drfit (stale and inconsistent responses) should be an SLI for the new SLO.
- Ship new indexes weekly T435674: Promote the data reload pipeline to prod