[
https://issues.apache.org/jira/browse/HDDS-9065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Krishna Kumar Asawa reassigned HDDS-9065:
-----------------------------------------
Assignee: Sadanand Shenoy (was: Hongbing Wang)
> [FSO]ListKeys: Incorrect result when keyPrefix matching multiple exist keys
> ---------------------------------------------------------------------------
>
> Key: HDDS-9065
> URL: https://issues.apache.org/jira/browse/HDDS-9065
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Hongbing Wang
> Assignee: Sadanand Shenoy
> Priority: Major
>
> Giving Namespace in FSO bucket:
> {code:java}
> keys.add("/x/y/z/z1.tx");
> keys.add("/x/y/z/z1.txdir/z2.tx"); {code}
> When listKeys with keyPrefix: "x/y/z/z1.tx", result is incorrent:
> {code:java}
> Expected :[x/y/z/z1.tx, x/y/z/z1.txdir/, x/y/z/z1.txdir/z2.tx]
> Actual :[x/y/z/z1.tx, x/y/z/z1.tx] {code}
> The above problem can be reproduced in `TestListKeysWithFSO.java`:
> {code:java}
> private static void buildNameSpaceTree2(OzoneBucket ozoneBucket)
> throws Exception {
> LinkedList<String> keys = new LinkedList<>();
> keys.add("/x/y/z/z1.tx");
> keys.add("/x/y/z/z1.txdir/z2.tx");
> createKeys(ozoneBucket, keys);
> }
> @Test
> public void testListKeysWithMixOfDirsAndFiles() throws Exception {
> expectedKeys = getExpectedKeyList("x/y/z/z1.tx", "", legacyOzoneBucket2);
> checkKeyList("x/y/z/z1.tx", "", expectedKeys, fsoOzoneBucket2);
> }{code}
> It will seriously affect the accuracy of s3g list.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]