sumitagrawl commented on PR #9121: URL: https://github.com/apache/ozone/pull/9121#issuecomment-3381020965
@sodonnel For OpenKey, its valid scenario where path can not be constructed, and we must show those open keys, 1. Openkey is created with path /d1/d2/key1 2. before commit, /d1/d2 path is deleted (this is allowed) 3. So when try to list key1 as openkey, it should be allowed to be listed (even parent is not present) **If we do not list, it will be bug for this scenario.** So we should return empty string. Earlier its good to have full path for openKey but not mandatory expected. **ListKey** try to make use of same method is problem. As listKey only return proper key being committed, so fullpath is expected here. For this scenario, we can return ServiceNotReady. But there is a challenge here, - NSSummary is updated async way, but db update is done on receiving delta immediately. So expecting full path available always is a challenge, and this is a problematic implementation of List API for the **tiering** purpose. I think instead of returning error which is normal in async case, may be tiering can ignore the empty path and api should not throw exception. -- 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]
