hemantk-12 opened a new pull request, #5986:
URL: https://github.com/apache/ozone/pull/5986

   ## What changes were proposed in this pull request?
   Currently we use two different Concurrent collections, ConcurrentMap to keep 
entries in the cache and ConcurrentSet to keep track for the entries which can 
be closed. Usage of these two are causing 
[deadlock](https://issues.apache.org/jira/browse/HDDS-9871) and [race 
condition](https://issues.apache.org/jira/browse/HDDS-10076) problem.
   
   In this change, usage of ConcurrentSet to keep track of closable entries is 
removed. Now we are iteration over the ConcurrentMap itself and checking if 
entry's reference size has reached zero and can be closed. If it has, we close 
the RocksDB object and remove the entry from the SnapshotCache.
   
   ## What is the link to the Apache JIRA
   [HDDS-10103](https://issues.apache.org/jira/browse/HDDS-10103)
   
   ## How was this patch tested?
   Existing unit and integration tests.
   


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