lszskye opened a new pull request, #501:
URL: https://github.com/apache/paimon-cpp/pull/501

   ### Purpose
   
   Linked issue: #500 
   
   Allocate a separate NoLockFactory for each reader and writer directory.
   The singleton factory shares a mutable lockPrefix that Directory::
   setLockFactory updates without synchronization, causing a data race
   and potential double-free during concurrent directory creation.
   
   Add a multithreaded regression test verifying that each directory
   retains its own distinct lock prefix.
   
   ### Tests
   - src/paimon/global_index/lucene/lucene_directory_test.cpp
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to