jojochuang commented on PR #6530: URL: https://github.com/apache/ozone/pull/6530#issuecomment-2073586481
From what I can tell, it's because keyName is set as the leaf name https://github.com/apache/ozone/blob/c1e9e9180960777ac99e6483515e8b76e585f5d0/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java#L618 and it is used by OMKeyCommitWithFSO which sets the keyName of OmKeyInfo entry in keyTable as the leaf. parentObjectId in KeyArgs is used inside OpenKeyCleanupService. It's not used by client. It feels like a hack but I can live with it because it does fix the issue. IMO OMKeyCommitWithFSO should use the full path as the keyName. But if that is changed, we'd likely open a Pandora's box and need to fix many other places where it is assumed to be the leaf name. -- 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]
