ashishkumar50 opened a new pull request, #4655:
URL: https://github.com/apache/ozone/pull/4655

   ## What changes were proposed in this pull request?
   
   Ozone currently uses a block count metadata field for each container replica 
to determine whether it is empty. This counter can go wrong sometime and also 
difficult to maintain.
   
   In this PR we simplify check for container flow, which will now make use of 
isEmpty boolean flag to determine whether container replica is empty or not. 
When we create container, isEmpty flag starts as false and is set to true when 
a delete block is processed and the block table is empty. This will ease in 
making decision for checking empty container and later we can delete those 
empty container. 
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-8115
   
   ## How was this patch tested?
   
   Added new test case as well as verified using existing test case.
   


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