swamirishi commented on PR #9131:
URL: https://github.com/apache/ozone/pull/9131#issuecomment-3477992199

   > > I see that we don't have a unit test for this class. Please add a unit 
test for this class which ensure we are taking a lock on all the background 
services and a double buffer wait happens
   > 
   > We do have a unit test that verifies this and 2 tests that verify 
bootstrap lock co-ordinationi.e testBootstrapLockCoordination and 
testBootstrapLockBlocksMultipleServices
   > 
   > 
https://github.com/apache/ozone/blob/833e955bdc237e4651142016b047fe376f4fc6dc/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOMDbCheckpointServletInodeBasedXfer.java#L498
   > 
   > I have updated the patch to remove the purge snapshot condition as you 
suggested.
   
   Should we also write a test for OmDBCheckpointServletInodeBasedXfer is 
actually using OMDbCheckpointServlet.Lock and not something else? Here we are 
creating a new instance of the lock
   
https://github.com/apache/ozone/blob/833e955bdc237e4651142016b047fe376f4fc6dc/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOMDbCheckpointServletInodeBasedXfer.java#L488
   
   


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