Transactions locks should be only on DDL commands.
GRANT and “FLUSH PRIVILEGES” are DCL coomands. Theys should’nt cause cluster conflict?
Our app very often uses “DESCRIBE table_name”, and we sometimes granting permissions. On granting we get an error.log. How to avoid this?
2023-03-10T10:58:16.625799-00:00 14 [Note] [MY-000000] [WSREP] --------- CONFLICT DETECTED --------
2023-03-10T10:58:16.625821-00:00 14 [Note] [MY-000000] [WSREP] cluster conflict due to high priority abort for threads:
2023-03-10T10:58:16.625843-00:00 14 [Note] [MY-000000] [WSREP] Winning thread:
THD: 14, mode: toi, state: exec, conflict: committed, seqno: 1104217939
SQL: FLUSH PRIVILEGES
2023-03-10T10:58:16.625865-00:00 14 [Note] [MY-000000] [WSREP] Victim thread:
THD: 6628131, mode: local, state: exec, conflict: executing, seqno: -1
SQL: DESCRIBE `table_1`
2023-03-10T10:58:24.041941-00:00 17 [Note] [MY-000000] [WSREP] --------- CONFLICT DETECTED --------
2023-03-10T10:58:24.042019-00:00 17 [Note] [MY-000000] [WSREP] cluster conflict due to high priority abort for threads:
2023-03-10T10:58:24.042050-00:00 17 [Note] [MY-000000] [WSREP] Winning thread:
THD: 17, mode: toi, state: exec, conflict: committed, seqno: 1104218951
SQL: GRANT ALTER, ALTER ROUTINE, CREATE, CREATE ROUTINE, CREATE TEMPORARY TABLES, CREATE VIEW, DELETE, DROP, EVENT, INDEX, INSERT, REFERENCES, TRIGGER, UPDATE, LOCK TABLES ON `wrg_%`.* TO 'devuser35'@'%'
2023-03-10T10:58:24.042077-00:00 17 [Note] [MY-000000] [WSREP] Victim thread:
THD: 6628673, mode: local, state: exec, conflict: executing, seqno: -1
SQL: DESCRIBE `table_2`