ashishkumar50 opened a new pull request, #5051: URL: https://github.com/apache/ozone/pull/5051
## What changes were proposed in this pull request? When key is deleted, it firsts inserts into cache as deleted and later flush to db which deletes entry from db. In case of Bucket empty check we first check in cache and the check in table whether any entry exist for the prefix. But during this iteration there is chance that cache gets flushed into db and when we read cache it returns NULL and at this point we assume that table has entry but cache don't have. But actually table entry is also removed. So to fix this in this case we should check in table whether really table entry is removed. Similar problem is for Volume empty check. Making volume empty check also follow above criteria to ensure it is empty or not. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-8526 ## How was this patch tested? Before Fix: Test fails Intermittently in latest master for TestRootedOzoneFileSystemWithFSO. https://github.com/ashishkumar50/ozone/actions/runs/5529154450 After Fix: Succeeded in all 10 * 10 run for TestRootedOzoneFileSystemWithFSO. https://github.com/ashishkumar50/ozone/actions/runs/5530000636/ -- 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]
