[MDEV-22765] Race condition in i_s_fts_index_cache_fill_one_index() Created: 2020-06-01  Updated: 2021-01-19  Resolved: 2020-07-14

Status: Closed
Project: MariaDB Server
Component/s: Full-text Search, Storage Engine - InnoDB
Affects Version/s: 10.0, 10.1, 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.1.46, 10.2.33, 10.3.24, 10.4.14, 10.5.5

Type: Bug Priority: Major
Reporter: Thirunarayanan Balathandayuthapani Assignee: Thirunarayanan Balathandayuthapani
Resolution: Fixed Votes: 0
Labels: corruption, race, upstream


 Description   

This issue is an upstream bug of mysql#99458.
i_s_fts_index_cache_fill_one_index() should have taken cache lock before accessing
the fts index cache. It could result in reading stale data.



 Comments   
Comment by Marko Mäkelä [ 2020-07-13 ]

Could we use an S-latch instead of X-latch? And can we avoid holding dict_operation_lock?

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