mariadb/mysql-test/suite
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
..
archive
atomic
binlog Merge branch '11.4' into bb-11.8-release 2025-10-24 12:25:01 +02:00
binlog_encryption Merge branch '10.11' into 11.4 2025-07-28 19:40:10 +02:00
client
compat Merge branch 'bb-11.4-serg' into bb-11.8-serg 2025-11-04 18:27:52 +01:00
csv
encryption Merge 11.4 into 11.8 2025-10-07 14:37:43 +03:00
engines Merge 11.4 into 11.8 2025-09-29 18:25:09 +03:00
events Merge branch '11.4' into bb-11.8-release 2025-10-24 12:25:01 +02:00
federated Merge branch '10.11' into 11.4 2025-11-04 13:44:16 +01:00
funcs_1 Merge branch '10.11' into 11.4 2025-07-28 19:40:10 +02:00
funcs_2
galera MDEV-37808 "Local temporary space limit reached" on not so rare occasions 2025-11-19 15:14:40 +02:00
galera_3nodes MDEV-37494: galera_3nodes.galera_vote_majority_dml - merge fix 2025-10-15 18:09:45 +11:00
galera_3nodes_sr
galera_sr Merge 11.4 into 11.8 2025-11-12 07:46:27 +02:00
gcol Merge branch '10.11' into 11.4 2025-07-28 19:40:10 +02:00
handler
heap
innodb Merge 11.4 into 11.8 2025-11-12 07:46:27 +02:00
innodb_fts Merge 11.4 into 11.8 2025-11-12 07:46:27 +02:00
innodb_gis Merge 11.4 into 11.8 2025-11-12 07:46:27 +02:00
innodb_i_s
innodb_zip Merge branch '11.4' into bb-11.8-release 2025-10-24 12:25:01 +02:00
jp
json Merge branch 'bb-11.4-serg' into bb-11.8-serg 2025-11-04 18:27:52 +01:00
large_tests
maria Merge branch '10.11' into 11.4 2025-11-04 13:44:16 +01:00
mariabackup Merge 11.4 into 11.8 2025-09-29 18:25:09 +03:00
merge fix merge test to restore the environment 2025-11-03 16:56:29 +01:00
mtr/t
mtr2
multi_source Merge 11.4 into 11.8 2025-09-29 18:25:09 +03:00
optimizer_unfixed_bugs
parts Merge branch '11.4' into 11.8 2025-07-28 21:29:29 +02:00
perfschema Fixed that perfschema.misc_session_status is ignored with valgrind builds 2025-11-19 14:02:54 +02:00
perfschema_stress
period Merge 11.4 into 11.8 2025-09-29 18:25:09 +03:00
plugins Merge branch '10.11' into 11.4 2025-11-04 13:44:16 +01:00
roles MDEV-7761 Some MTR tests fail when run on a host named 'localhost' 2025-07-21 10:24:14 +02:00
rpl Merge branch '11.4' into bb-11.8-release 2025-10-24 12:25:01 +02:00
s3 Merge branch '11.4' into 11.8 2025-06-18 07:43:24 +02:00
sql_sequence Merge branch '11.4' into 11.8 2025-11-04 12:39:27 +01:00
storage_engine
stress
sys_vars Merge branch 'bb-11.4-serg' into bb-11.8-serg 2025-11-04 18:27:52 +01:00
sysschema Merge 11.4 into 11.8 2025-09-29 18:25:09 +03:00
unit
vcol Merge 11.4 into 11.8 2025-09-29 18:25:09 +03:00
versioning Merge 11.4 into 11.8 2025-11-12 07:46:27 +02:00
wsrep Merge 11.4 into 11.8 2025-11-12 07:46:27 +02:00