mariadb/mysql-test/suite/galera
Monty b2f6216695 MDEV-37808 "Local temporary space limit reached" on not so rare occasions
This bug happens when using galera, max_tmp_session_space_usage and a
transaction that uses temporary file of a size between 'binlog-cache-size'
(default 32K) and 64K followed by a change user command.

In the case of a transaction of size between 32k and 64k, the server don't
truncate the binary log file on disk to speed up things, which is fine.

The bug was that change_user() reset the tmp_space_used variable and the
next time the temporary_file was truncated, we got a negative value for
tmp_space_used, which caused the error "Local temporary space limit
reached".

Fixed by not resetting tmp_space_used in init(), which is called by
change_user().

Other things
- Truncate binary log cache files when change_user() is called. This
  makes the new users session not depending on log file sizes by previous
  user.
- Some new ASSERT and DBUG_ENTER
- Fixed typo in DBUG output in ma_pagecache.c
2025-11-19 15:14:40 +02:00
..
include Merge branch '10.5' into '10.6' 2025-04-02 04:43:24 +02:00
r MDEV-37808 "Local temporary space limit reached" on not so rare occasions 2025-11-19 15:14:40 +02:00
t MDEV-37808 "Local temporary space limit reached" on not so rare occasions 2025-11-19 15:14:40 +02:00
disabled.def Merge branch '10.6' into bb-10.11-release 2025-10-27 14:34:43 +01:00
galera_2nodes.cnf Merge 10.11 into 11.4 2025-03-28 13:55:21 +02:00
galera_2nodes_as_master.cnf Merge 10.11 into 11.4 2025-03-28 13:55:21 +02:00
galera_2nodes_as_replica_2primary.cnf galera mtr tests: unification of wsrep provider settings 2025-02-12 13:37:03 +01:00
galera_2nodes_as_slave.cnf Merge 10.11 into 11.4 2025-03-28 13:55:21 +02:00
galera_2x2nodes.cnf Merge remote-tracking branch 'origin/11.2' into 11.4 2024-06-17 15:46:39 +04:00
galera_3nodes_as_slave.cnf Merge 10.11 into 11.4 2025-03-28 13:55:21 +02:00
galera_4nodes.cnf Merge 10.11 into 11.4 2025-03-28 13:55:21 +02:00
my.cnf
suite.pm galera mtr tests: synchronization between versions 2025-02-26 18:19:28 +01:00