Dear all
I use Galera 4 and Mysql 8 on Centos 7.
I have 3 nodes: gcomm://
10.38.29.9,10.38.29.99,10.38.29.212
My first node to startup a bootstrap is 10.38.29.9.
One day, node 10.38.29.9 get error:
2021-07-03T11:01:00.903041Z 1 [Warning] [MY-010584] [Repl] Slave SQL: Error executing row event: 'Deadlock found when trying to get lock; try restarting transaction', Error_code: MY-001213
2021-07-03T11:01:00.915301Z 1 [Warning] [MY-000000] [WSREP] Event 7 Write_rows apply failed: 1, seqno 37050322
2021-07-03T11:01:00.994384Z 1 [ERROR] [MY-000000] [Server] WSREP: Inconsistency detected: Inconsistent by consensus on be0acc17-27e3-11eb-86ad-5befdf207edd:37050322
at galera/src/replicator_smm.cpp:process_apply_error():1347
2021-07-03T11:01:01.026450Z 1 [ERROR] [MY-000000] [Server] WSREP: Failed to apply write set: gtid: be0acc17-27e3-11eb-86ad-5befdf207edd:37050322 server_id: 5a662628-4410-11eb-b784-a336924c6c06 client_id: 3094139 trx_id: 666910139 flags: 3 (start_transaction | commit)
And when I try to restart node 10.38.29.9 with :
systemctl restart mysqld
It can not start with error:
2021-07-04T16:18:54.795888Z 0 [ERROR] [MY-000000] [Server] WSREP: It may not be safe to bootstrap the cluster from this node. It was not the last one to leave the cluster and may not contain all the updates. To force cluster bootstrap with this node, edit the grastate.dat file manually and set safe_to_bootstrap to 1 .
2021-07-04T16:18:54.795994Z 0 [ERROR] [MY-000000] [WSREP] wsrep::connect(gcomm://
10.38.29.9,10.38.29.99,10.38.29.212) failed: 7
2021-07-04T16:18:54.819629Z 0 [ERROR] [MY-010119] [Server] Aborting
What can I do to start and rejoin the node? I've searched but its not successful.
Thanks.