ivandika3 opened a new pull request, #9932: URL: https://github.com/apache/ozone/pull/9932
## What changes were proposed in this pull request? We have encountered incidents caused by createFakeDirIfShould in getFileStatus since createFakeDirIfShould creates a RocksDB iterator and it might take a long time when the keyTable has a lot of tombstones. This causes OM to be stuck since writes on the same bucket will be held, which in turns held all the pending write transactions in OM Ratis applier. Let's move createFakeDirIfShould outside of the lock to prevent this. There is some tradeoff in terms of consistency, but since createFakeDirIfShould should not be the normal case, we can contend with this. This should only be relevant to LEGACY buckets since FSO bucket does not have this iterator logic and OBS bucket will not be accessed by FS client (`getFileStatus` is a FS Ops) ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-14841 ## How was this patch tested? Existing CI. -- 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]
