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

   ## What changes were proposed in this pull request?
   
   This PR is to fix flakiness in listStatus API.  It was observed that, 
cleanup() method in TestOzoneFileSystem (in CI integration (filesystem)), which 
is triggered after EACH test method is incredibly flaky. However when we add a 
call to wait for double buffer flush, it no longer seems flaky. 
   Issue was related to a possible race condition where table cache iterator is 
flushed already and isKeyDeleted check may not work as expected before putting 
entries in cacheKeyMap in listStatus API.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9233
   
   ## How was this patch tested?
   
   This patch is tested with multiple job runs with 50 iterations of single 
test class to repro of flakiness of listStatus API which was flaky when called 
in deleteRootDir() method called from cleanup method. Here is the green [CI 
run](https://github.com/devmadhuu/ozone/actions/runs/6072078050) with multiple 
iterations of test run. 
   


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