bharatviswa504 opened a new pull request #600: HDDS-2648. 
TestOzoneManagerDoubleBufferWithOMResponse.
URL: https://github.com/apache/hadoop-ozone/pull/600
 
 
   ## What changes were proposed in this pull request?
   
   Fix flaky test.
   
   The issue with testDoubleBufferWithMixOfTransactionsParallel is because the 
lastAppliedIndex can be exactly not equal to total transaction count. This is 
because in 2 threads executing createBucket
   
   T1- CreateBucket
   T2-CreateBucket
   
   T2 got lock first and put in double buffer and updateLastAppliedIndex to 2, 
and then when T1 executes it updates it to 1. So, just in parallel test checked 
that it is less than or equal to total transaction count.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-2648
   
   ## How was this patch tested?
   
   This is a test only change.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to