Cpaulyz opened a new pull request, #11453:
URL: https://github.com/apache/iotdb/pull/11453

   ## Description
   
   Fix issues in concurrent scenarios, for example:
   1. Thread A successfully acquire write lock
   2. Thread B acquire read lock and write
   3. Thread A release write lock
   4. Thread C successfully acquire write lock
   
   At this time, Thread B may be waked up and try to get read lock. So it's 
necessary to judge `(prior ? writeCnt : writeCnt + writeWait) > 0` again. 
Otherwise, there are one writer and one reader holding lock.
   


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