cassandra08 fails to restart
The cassandra08
node fails to restart:
root@cassandra01:~# /opt/cassandra/bin/nodetool -u cassandra -pw siesta-subway-composer-reproduce status -r | awk '/^DN/'
DN cassandra08.internal.softwareheritage.org 9.03 TiB 16 29.9% 247cd9e3-a70c-465c-bca1-ea9d3af9609a rack1
Here are the error logs:
root@cassandra08:~# tail -100 /var/log/cassandra/instance1/system.log | grep ERROR
ERROR [main] 2024-03-28 08:35:52,422 LogReplicaSet.java:194 - Found too many lines for , giving up
ERROR [main] 2024-03-28 08:35:52,423 LogFile.java:162 - Failed to read records for transaction log [nb_txn_stream_14660670-ec55-11ee-b784-f378cae1562c.log in /srv/cassandra/instance1/data/swh/extid-ba0c7ec02d2e11edb23fb91705299a22]
ERROR [main] 2024-03-28 08:35:52,424 LogTransaction.java:551 - Unexpected disk state: failed to read transaction log [nb_txn_stream_14660670-ec55-11ee-b784-f378cae1562c.log in /srv/cassandra/instance1/data/swh/extid-ba0c7ec02d2e11edb23fb91705299a22]
ERROR [main] 2024-03-28 08:35:52,428 CassandraDaemon.java:911 - Cannot remove temporary or obsoleted files for swh.extid due to a problem with transaction log files. Please check records with problems in the log messages above and fix them. Refer to the 3.0 upgrading instructions in NEWS.txt for a description of transaction log files.
Here is the log of the failed transaction:
root@cassandra08:~# cat /srv/cassandra/instance1/data/swh/extid-ba0c7ec02d2e11edb23fb91705299a22/nb_txn_stream_14660670-ec55-11ee-b784-f378cae1562c.log
ABORT:[,0,0][737437348]
ADD:[/srv/cassandra/instance1/data/swh/extid-ba0c7ec02d2e11edb23fb91705299a22/nb-14885-big-,0,8][3021221038]
root@cassandra08:~# ls -trl /srv/cassandra/instance1/data/swh/extid-ba0c7ec02d2e11edb23fb91705299a22/nb-14885-big*
-rw-r--r-- 1 cassandra cassandra 0 Mar 27 16:14 /srv/cassandra/instance1/data/swh/extid-ba0c7ec02d2e11edb23fb91705299a22/nb-14885-big-Index.db
-rw-r--r-- 1 cassandra cassandra 0 Mar 27 16:14 /srv/cassandra/instance1/data/swh/extid-ba0c7ec02d2e11edb23fb91705299a22/nb-14885-big-Data.db