[MDEV-22392] Race condition on SET GLOBAL innodb_buffer_pool_evict='uncompressed' Created: 2020-04-28  Updated: 2020-04-28  Resolved: 2020-04-28

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 5.5, 10.0, 10.1, 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.1.45, 10.2.32, 10.3.23, 10.4.13, 10.5.3

Type: Bug Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: upstream-fixed

Issue Links:
Blocks
blocks MDEV-22394 Merge new release of InnoDB 5.7.30 to... Closed

 Description   

MySQL 5.7.30 includes the fix
Bug#30405531 : I_INNODB_ZIP.BUG16067973 FAILS ON UBSAN WEEKLY-TRUNK
of a race condition between the debug instrumentation SET GLOBAL innodb_buffer_pool_evict='uncompressed'; and buf_LRU_free_block(), which was later renamed to buf_LRU_free_page().

The fix is applicable to MariaDB. It is only affecting debug builds.



 Comments   
Comment by Marko Mäkelä [ 2020-04-28 ]

Because the code is very different in 5.5, I will not fix it there.

Comment by Marko Mäkelä [ 2020-04-28 ]

The function buf_LRU_free_page() in the XtraDB storage engine of MariaDB 10.1 appears to be following the old buf_LRU_free_block() API. Hence, we can only fix this in InnoDB.

In MariaDB 10.2, XtraDB is not being built any more.

Generated at Thu Feb 08 09:14:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.