sumitagrawl commented on PR #5947:
URL: https://github.com/apache/ozone/pull/5947#issuecomment-1882693833

   @szetszwo Thanks for review, I have updated using acquire, but still can not 
remove isClosed variable,
   
   - This is to avoid multiple close being triggered, otherwise, it will wait 
in while loop to check and set. Similarly flow can also wait in same loop. To 
avoid same, need this isClosed flag.
   - To avoid lock contention, like some close keeps waiting in while loop, and 
other threads keeps taking counter and release continuously.
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to