Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] Fix pindex read-write concurrency between commit and apply (#…
…33220) During the execution of apply on the primary key table, the apply thread maybe clear or modify _l1_vec of persistent index. And during the execution commit, the commit thread will update primary index memory usage and need to access _l1_vec. So there are read/write conflicts between apply thread and commit thread which may cause BE crash. And we add _lock to prevent the read-write concurrency in previous pr but there are some scenarios where locks were inadvertently missed. Signed-off-by: zhangqiang <qiangzh95@gmail.com> (cherry picked from commit 6bf3e88)
- Loading branch information