Page MenuHomePhabricator

WikibaseQualityConstraints error on Commons: "Cannot cache constraint check results for non-local source: wikidata"
Open, Needs TriagePublicPRODUCTION ERROR

Description

"Just" logspam, but there's a lot of it, and this seems to be a very obvious/common issue with federation that we should not trigger in the first place?

Error
normalized_message
Cannot cache constraint check results for non-local source: wikidata
exception.trace
Impact

Approximately 1 million of these warnings logged in the last 7 days, and over 4 million over the past 30.

Notes

Details

Request URL
https://commons.wikimedia.org/w/api.php?action=wbcheckconstraints&format=*&formatversion=*&id=*&status=*&uselang=*

Event Timeline

this seems to be a very obvious/common issue with federation that we should not trigger in the first place?

Nah, I’d say this is working as currently expected on Commons. We could investigate how to fix the caching if and when it becomes a performance issue (⇒ T244726: WikibaseQualityConstraints can’t cache constraint results in federated setups), but until then I’d say let’s just silence the log message if it’s too spammy. Would changing the level from warning to notice work for you? (If I understand $wmgMonologChannels correctly, we’re actually sending WikibaseQualityConstraints messages at all levels including debug to logstash, but I guess they’d at least drop out of some relevant logstash dashboards?)