Steps to replicate the issue (include links if applicable):
Unknown
What happens?:
Our bot, WP 1.0, started misbehving during it's May 14 run. See discussion on-wiki here.
Basically, the bot started deleting all of it's own data and creating "empty" tables. The root cause seems to be that the following SQL query completed without errors, but returned an empty result set:
SELECT page_namespace, page_title, page_id, cl_sortkey, cl_timestamp FROM page JOIN categorylinks ON page_id = cl_from WHERE cl_to = 'A-Class_Austria_articles'
When the bot was re-run about 16 hours later, everything worked as expected.
What should have happened instead?:
The query should have returned the expected result set.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
N/A
Other information (browser name/version, screenshots, etc.):
Codebase: https://github.com/openzim/wp1