2018-05-09 17:47:48 [WvM-1NApAMEMAADtSlpwAAADA] mw1232 wikidatawiki 1.32.0-wmf.2 DBQuery ERROR: Wikibase\SqlIdGenerator::generateNewId 10.64.48.26 1205 Lock wait timeout exceeded; try restarting transaction (10.64.48.26) SELECT id_value FROM `wb_id_counters` WHERE id_type = 'wikibase-item' LIMIT 1 FOR UPDATE {"db_server":"10.64.48.26","db_name":"wikidatawiki","db_user":"wikiuser","method":"Wikimedia\\Rdbms\\Database::makeQueryException","errno":1205,"error":"Lock wait timeout exceeded; try restarting transaction (10.64.48.26)","sql1line":"SELECT id_value FROM `wb_id_counters` WHERE id_type = 'wikibase-item' LIMIT 1 FOR UPDATE","fname":"Wikibase\\SqlIdGenerator::generateNewId"}
This is happening occasionally, 0 to 5 times a day.
Patch-For-Review / TODO:
- [add UpsertSqlIdGenerator](https://gerrit.wikimedia.org/r/474278)
- inject generator into store
- make generator configurable
- enable UpsertSqlIdGenerator on beta
- enable UpsertSqlIdGenerator on test
- enable UpsertSqlIdGenerator on wikidata
- Code: T213817 Use a seperate connection for ID insertions
- Deployment T215147, Use a seperate connection for ID insertions