lordcheng10 commented on PR #3378:
URL: https://github.com/apache/bookkeeper/pull/3378#issuecomment-1172839903

   > Please explain why this lock is not needed. this lock is used to avoid 
data is inserted to a writecachebeingflushed.
   
   When the entry is inserted into the write cache, if two write caches are 
being exchanged at this time, the entry will definitely be inserted into one of 
the caches anyway, because the write cache is exchanged first, then the cache 
is flushed and cleaned up, so the entry is inserted. Data is written to the 
file with the current or next flush.  @gaozhangmin 


-- 
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