Lucas_Werkmeister_WMDE added a comment.
I added some debug output here <https://integration.wikimedia.org/ci/job/wikibase-repo-docker/8811/console>. > I couldn't reproduce the error with SQLite locally, but I'm not sure what version was used in the test. The Jenkins build uses 3.16.2, released 2017-01-06 <https://sqlite.org/changes.html#version_3_16_2>. Not sure what version the Travis builds use. The output from this snippet is interesting: wfDebug( 'change dispatch row: ' . var_export( $dbr->selectRow( $this->stateTable, '*', [], __METHOD__ ), true ) ); wfDebug( 'conditions: ' . var_export( [ 'chd_site' => $siteID ], true ) ); // get client state $state = $dbr->selectRow( $this->stateTable, [ 'chd_site', 'chd_db', 'chd_seen', 'chd_touched', 'chd_lock', 'chd_disabled' ], [ 'chd_site' => $siteID ], __METHOD__ ); if ( !$state ) { $this->warn( "ERROR: $siteID is not in the dispatch table." ); return false; } 14:16:39 [wfDebug] [debug] change dispatch row: stdClass::__set_state(array( 14:16:39 'chd_site' => '0', 14:16:39 'chd_db' => 'foowiki', 14:16:39 'chd_seen' => '0', 14:16:39 'chd_touched' => '00000000000000', 14:16:39 'chd_lock' => NULL, 14:16:39 'chd_disabled' => '0', 14:16:39 )) {"private":false} 14:16:39 [wfDebug] [debug] conditions: array ( 14:16:39 'chd_site' => '0', 14:16:39 ) {"private":false} 14:16:39 === 14:16:39 ERROR: 0 is not in the dispatch table. [Called from Wikibase\Repo\Store\Sql\SqlChangeDispatchCoordinator::warn in /workspace/src/extensions/Wikibase/repo/includes/Store/Sql/SqlChangeDispatchCoordinator.php at line 621] So `selectRow` with no conditions returns a row having `'chd_site' => '0'`, and immediately afterwards a `selectRow` with condition `'chd_site' => '0'` fails to return a row. The 0 is a string, not an int, in both cases. TASK DETAIL https://phabricator.wikimedia.org/T238575 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: hoo, WMDE-leszek, Anomie, tstarling, Addshore, Aklapper, Lucas_Werkmeister_WMDE, Hook696, Daryl-TTMG, RomaAmorRoma, 0010318400, E.S.A-Sheild, Iflorez, darthmon_wmde, alaa_wmde, Meekrab2012, joker88john, DannyS712, CucyNoiD, Nandana, NebulousIris, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Af420, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, WSH1906, Lewizho99, Maathavan, _jensen, rosalieper, Scott_WUaS, Jonas, Wikidata-bugs, aude, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
