mariadb/storage
mariadb-DebarunBanerjee 2d5cba22a9 MDEV-34167 We fail to terminate transaction early with ER_LOCK_TABLE_FULL when lock memory is growing
This regression is introduced in 10.6 by following commit.
commit b6a2472489
MDEV-27891: SIGSEGV in InnoDB buffer pool resize

During DML, we check if buffer pool is running out of data pages in
buf_pool_t::running_out. Here is 75% of the buffer pool is occupied by
non-data pages we rollback the current transaction and exit with
ER_LOCK_TABLE_FULL.

The integer division (n_chunks_new / 4) becomes zero whenever the total
number of chunks are < 4 making the check completely ineffective for
such cases. Also the check is inaccurate for larger chunks.

Fix-1: Correct the check in buf_pool_t::running_out.

Fix-2: While waiting for free page, check for
buf_LRU_check_size_of_non_data_objects.
2024-05-21 08:33:44 +05:30
..
archive Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
blackhole Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
columnstore columnstore 6.4.8-2 2024-05-09 00:04:20 +02:00
connect Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
csv Merge branch 'bb-10.4-release' into bb-10.5-release 2021-02-15 16:43:15 +01:00
example Merge branch '10.4' into 10.5 2023-12-02 01:02:50 +01:00
federated Merge 10.5 into 10.6 2023-02-10 13:03:01 +02:00
federatedx Merge branch '10.5' into 10.6 2024-01-31 18:04:03 +01:00
heap Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
innobase MDEV-34167 We fail to terminate transaction early with ER_LOCK_TABLE_FULL when lock memory is growing 2024-05-21 08:33:44 +05:30
maria Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
mroonga Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
myisam Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
myisammrg Fixed some mtr tests that failed on windows 2024-01-23 13:03:12 +02:00
oqgraph Merge 10.5 into 10.6 2023-09-11 14:46:39 +03:00
perfschema Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
rocksdb Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
sequence Merge 10.4 into 10.5 2023-02-10 12:02:11 +02:00
sphinx Merge branch '10.5' into 10.6 2024-01-11 12:59:22 +11:00
spider Merge branch '10.5' into 10.6 2024-05-08 20:06:00 +02:00
test_sql_discovery Merge 10.5 into 10.6 2022-09-20 16:53:20 +03:00