lsst-uk / lasair4

The Great Refactor. Joining lasair-lsst and lasair-lsst-web
Apache License 2.0
0 stars 1 forks source link

Locking issue with sherlock cache #34

Open gpfrancis opened 3 years ago

gpfrancis commented 3 years ago

('ZTF20abckvit','AGN',%s) ON DUPLICATE KEY UPDATE class=VALUES(class), crossmatch=VALUES(crossmatch) Traceback (most recent call last): File "/wrapper.py", line 372, in run(conf, log) File "/wrapper.py", line 305, in run n = consume(conf, log, alerts, consumer) File "/wrapper.py", line 82, in consume n_classified = classify(conf, log, alerts) File "/wrapper.py", line 235, in classify cursor.execute(query, crossmatches) File "/usr/local/lib/python3.8/dist-packages/pymysql/cursors.py", line 163, in execute result = self._query(query) File "/usr/local/lib/python3.8/dist-packages/pymysql/cursors.py", line 321, in _query conn.query(q) File "/usr/local/lib/python3.8/dist-packages/pymysql/connections.py", line 505, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) File "/usr/local/lib/python3.8/dist-packages/pymysql/connections.py", line 724, in _read_query_result result.read() File "/usr/local/lib/python3.8/dist-packages/pymysql/connections.py", line 1069, in read first_packet = self.connection._read_packet() File "/usr/local/lib/python3.8/dist-packages/pymysql/connections.py", line 676, in _read_packet packet.raise_for_error() File "/usr/local/lib/python3.8/dist-packages/pymysql/protocol.py", line 223, in raise_for_error err.raise_mysql_exception(self._data) File "/usr/local/lib/python3.8/dist-packages/pymysql/err.py", line 107, in raise_mysql_exception raise errorclass(errno, errval) pymysql.err.OperationalError: (1213, 'Deadlock found when trying to get lock; try restarting transaction')

tms-epcc commented 3 years ago

14/JUL/21

tms-epcc commented 3 years ago

06/OCT/21