1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-09 11:41:36 +03:00
Files
mariadb/sql
Daniele Sciascia d698b784c8 MDEV-35658 Assertion `commit_trx' failed in test galera_as_master
The test issues a simple INSERT statement, while sql_log_bin = 0.
This option disables writes to binlog.  However, since MDEV-7205,
the option does not affect Galera, so changes are still replicated.
So sql_log_bin=off, "partially" disabled the binlog and the INSERT
will involve both binlog and innodb, thus requiring internal 2 phase
commit (2PC). In 2PC INSERT is first prepared, which will make it
transition to PREPARED state in innodb, and later committed which
causes the new assertion from MDEV-24035 to fail.
Running the same test with sql_log_bin enabled also results in 2PC,
but the execution has one more step for ordered commit, between prepare
and commit. Ordered commit causes the transaction state to transition
back to TRX_STATE_NOT_STARTED. Thus avoiding the assertion.
This patch makes sure that when sql_log_bin=off, the ordered commit
step is not skipped, thus going through the expected state transitions
in the storage engine.

Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
2025-04-02 04:29:40 +02:00
..
2023-11-08 12:59:00 +01:00
2021-04-20 12:30:09 +03:00
2024-08-12 09:32:30 +01:00
2024-10-28 15:29:10 +01:00
2023-01-27 13:54:14 +01:00
2022-04-21 15:33:50 +03:00
2025-01-14 18:56:13 +03:00
2023-02-10 12:02:11 +02:00
2024-11-23 08:14:22 -07:00
2025-01-26 16:15:46 +01:00
2021-10-13 12:03:32 +03:00
2023-11-08 12:59:00 +01:00
2023-11-08 12:59:00 +01:00
2024-11-23 08:14:22 -07:00
2021-04-21 07:25:48 +03:00
2023-02-10 12:02:11 +02:00
2022-06-09 12:22:55 +03:00
2022-10-02 14:38:13 +02:00
2023-02-10 12:02:11 +02:00
2022-10-25 11:26:37 +03:00
2023-12-02 01:02:50 +01:00
2023-12-02 01:02:50 +01:00
2023-07-20 11:54:52 +02:00
2023-02-10 12:02:11 +02:00
2023-02-10 12:02:11 +02:00
2024-11-23 08:14:22 -07:00
2023-02-10 12:02:11 +02:00
2024-11-23 08:14:22 -07:00
2024-12-04 18:22:31 +03:00
2023-05-02 10:09:27 +02:00
2024-11-23 08:14:22 -07:00
2023-11-08 12:59:00 +01:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:22 -07:00
2022-12-13 14:39:18 +02:00
2021-08-18 18:22:35 +03:00
2023-02-10 12:02:11 +02:00
2022-08-02 16:35:15 +10:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:22 -07:00
2022-11-30 13:10:52 +02:00
2024-01-10 18:01:46 +11:00
2024-01-10 18:01:46 +11:00
2024-11-23 08:14:22 -07:00
2021-06-30 18:41:46 +03:00
2024-02-12 11:38:13 +02:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:23 -07:00
2024-06-05 14:06:16 +10:00
2024-04-15 18:54:30 +02:00
2021-03-05 12:54:43 +02:00
2024-07-03 12:45:30 +02:00
2023-12-02 01:02:50 +01:00
2023-12-02 01:02:50 +01:00
2023-12-02 01:02:50 +01:00
2021-02-23 09:25:57 +01:00
2023-12-02 01:02:50 +01:00
2023-09-25 13:06:57 +10:00
2023-07-20 11:54:52 +02:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:23 -07:00
2025-01-07 16:46:43 +01:00
2022-08-10 12:24:31 +02:00
2024-01-10 18:01:46 +11:00
2024-11-23 08:14:22 -07:00
2023-02-10 12:02:11 +02:00
2024-02-12 11:38:13 +02:00
2023-01-03 17:08:42 +02:00
2023-02-10 12:02:11 +02:00
2022-09-05 13:28:56 +03:00
2023-12-22 00:10:23 +01:00
2022-06-27 10:14:37 +03:00
2024-01-03 12:07:51 +02:00
2024-11-23 08:14:22 -07:00