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

   ## What changes were proposed in this pull request?
   This intermittent failure is caused by a race condition with the om 
double-buffer flush-thread.
   
   If the test finishes before the double buffer is flushed, then it fails 
because the tarball doesn't contain all the expected snapshots.  The fix is to 
make the test wait until the double buffer is flushed.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-8681
   
   ## How was this patch tested?
   
   Without this fix, I can make this failure happen consistently by inserting a 
thread sleep in the double buffer thread here:  
https://github.com/GeorgeJahad/ozone/blob/15d451742a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/snapshot/OMSnapshotCreateResponse.java#L84-L88
   
   
   With the fix, it no longer fails even with the thread sleep.
   
   


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