[ https://issues.apache.org/jira/browse/HDDS-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17766799#comment-17766799 ]
Aryan Gupta commented on HDDS-4875: ----------------------------------- Hi, Suppose we create a key "a/b/c" and enabledFsPaths=true and in the key table we'll have 3 entries \{a, a/b, a/b/c} but our intent wasn't to create 3 separate keys explicitly so if we do bucket.getKey(a/b/) then it's not necessary we get a result, in the case of the LEGACY bucket with *enabledFsPaths=true* trailing slash wouldn't be preserved in case we provide. So, I believe it's not an issue and the behavior is expected! > getKey() must return a key when a key with trailing slash is passed > -------------------------------------------------------------------- > > Key: HDDS-4875 > URL: https://issues.apache.org/jira/browse/HDDS-4875 > Project: Apache Ozone > Issue Type: Bug > Components: Ozone Manager > Reporter: Sadanand Shenoy > Assignee: Tejaskriya Madhan > Priority: Major > Labels: newbie > > lets assume -> Key created : a/b/c/key1 when enabledFsPaths=true > bucket.getKey(a/b/c/) ,bucket.getKey(a/b/) must return a key instead of > returning KEY_NOT_FOUND because this key exists in KeyTable . While > normalising the key ,trailing slash isn't preserved currently. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org