kharlan@deploy1002:~$ kubectl logs -f linkrecommendation-production-load-datasets-1617051600-kzbcb == Initializing == Ensuring checksum table exists...[OK] Ensuring model table exists...[OK] Ensuring anchors table exists...[OK] Ensuring redirects table exists...[OK] Ensuring pageids table exists...[OK] Ensuring w2vfiltered table exists...[OK] Ensuring model table exists...[OK] Ensuring anchors table exists...[OK] Ensuring redirects table exists...[OK] Ensuring pageids table exists...[OK] Ensuring w2vfiltered table exists...[OK] Ensuring model table exists...[OK] Ensuring anchors table exists...[OK] Ensuring redirects table exists...[OK] Ensuring pageids table exists...[OK] Ensuring w2vfiltered table exists...[OK] Ensuring model table exists...[OK] Ensuring anchors table exists...[OK] Ensuring redirects table exists...[OK] Ensuring pageids table exists...[OK] Ensuring w2vfiltered table exists...[OK] Ensuring model table exists...[OK] Ensuring anchors table exists...[OK] Ensuring redirects table exists...[OK] Ensuring pageids table exists...[OK] Ensuring w2vfiltered table exists...[OK] Ensuring model table exists...[OK] Ensuring anchors table exists...[OK] Ensuring redirects table exists...[OK] Ensuring pageids table exists...[OK] Ensuring w2vfiltered table exists...[OK] Ensuring model table exists...[OK] Ensuring anchors table exists...[OK] Ensuring redirects table exists...[OK] Ensuring pageids table exists...[OK] Ensuring w2vfiltered table exists...[OK] Ensuring model table exists...[OK] Ensuring anchors table exists...[OK] Ensuring redirects table exists...[OK] Ensuring pageids table exists...[OK] Ensuring w2vfiltered table exists...[OK] Ensuring model table exists...[OK] Beginning process to load datasets for cswiki, simplewiki, arwiki, viwiki, bnwiki, enwiki, frwiki, elwiki == Attempting to download datasets (anchors, redirects, pageids, w2vfiltered, model) for cswiki == Downloading dataset http://thorium.eqiad.wmnet/published/datasets/one-off/research-mwaddlink/cswiki/lr_cswiki_anchors.sql.gz...[OK] Downloading dataset http://thorium.eqiad.wmnet/published/datasets/one-off/research-mwaddlink/cswiki/lr_cswiki_redirects.sql.gz...[OK] Downloading dataset http://thorium.eqiad.wmnet/published/datasets/one-off/research-mwaddlink/cswiki/lr_cswiki_pageids.sql.gz...[OK] Downloading dataset http://thorium.eqiad.wmnet/published/datasets/one-off/research-mwaddlink/cswiki/lr_cswiki_w2vfiltered.sql.gz...[OK] Downloading dataset http://thorium.eqiad.wmnet/published/datasets/one-off/research-mwaddlink/cswiki/cswiki.linkmodel.json...[OK] == Importing datasets (anchors, redirects, pageids, w2vfiltered, model) for cswiki == Verifying file and checksum exists for anchors...[OK] Verifying checksum for anchors...[OK] Verifying file and checksum exists for redirects...[OK] Verifying checksum for redirects...[OK] Verifying file and checksum exists for pageids...[OK] Verifying checksum for pageids...[OK] Verifying file and checksum exists for w2vfiltered...[OK] Verifying checksum for w2vfiltered...[OK] Verifying file and checksum exists for model...[OK] Verifying checksum for model...[OK] Processing dataset: anchors Traceback (most recent call last): File "load-datasets.py", line 351, in <module> main() File "load-datasets.py", line 301, in main "DELETE FROM {tablename}".format(tablename=tablename) File "/opt/lib/python/site-packages/pymysql/cursors.py", line 163, in execute result = self._query(query) File "/opt/lib/python/site-packages/pymysql/cursors.py", line 321, in _query conn.query(q) File "/opt/lib/python/site-packages/pymysql/connections.py", line 505, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/opt/lib/python/site-packages/pymysql/connections.py", line 724, in _read_query_result result.read() File "/opt/lib/python/site-packages/pymysql/connections.py", line 1069, in read first_packet = self.connection._read_packet() File "/opt/lib/python/site-packages/pymysql/connections.py", line 676, in _read_packet packet.raise_for_error() File "/opt/lib/python/site-packages/pymysql/protocol.py", line 223, in raise_for_error err.raise_mysql_exception(self._data) File "/opt/lib/python/site-packages/pymysql/err.py", line 107, in raise_mysql_exception raise errorclass(errno, errval) pymysql.err.OperationalError: (1205, 'Lock wait timeout exceeded; try restarting transaction') Deleting all values from lr_cswiki_anchors...
It's possible https://gerrit.wikimedia.org/r/c/research/mwaddlink/+/673347 (created to fix T275359: pymysql.err.OperationalError: (1412, 'Table definition has changed, please retry transaction')) is related, that's the only recent change to load-datasets.py