[
https://issues.apache.org/jira/browse/HDDS-9825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sumit Agrawal resolved HDDS-9825.
---------------------------------
Fix Version/s: 1.4.0
Resolution: Fixed
> ListKeys Iterator doesn't terminate when prefix contains "/" at the end
> -----------------------------------------------------------------------
>
> Key: HDDS-9825
> URL: https://issues.apache.org/jira/browse/HDDS-9825
> Project: Apache Ozone
> Issue Type: Bug
> Reporter: Ashish Kumar
> Assignee: Ashish Kumar
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 1.4.0
>
>
> listKeys iterator doesn't terminate when prefix contains "/" at the end of
> keyName.
> If we have a FSO key like vol1/bucket1/dir1/key1
> And we do listKeys by passing prefix as dir1/key1/
> In this case the iterator never terminates and keeps returning the same
> keyName.
> We can check using key list shell command also.
>
> {code:java}
> ozone sh key list o3://localhost:9862/s3v/fso/ --prefix dir1/1/
> [ {
> "volumeName" : "s3v",
> "bucketName" : "fso",
> "name" : "dir1/1/",
> "dataSize" : 5,
> "creationTime" : "2023-12-04T09:14:13.261Z",
> "modificationTime" : "2023-12-04T09:14:14.396Z",
> "replicationConfig" : {
> "replicationFactor" : "THREE",
> "requiredNodes" : 3,
> "replicationType" : "RATIS"
> },
> "metadata" : { },
> "file" : true
> }, {
> "volumeName" : "s3v",
> "bucketName" : "fso",
> "name" : "dir1/1/",
> "dataSize" : 5,
> "creationTime" : "2023-12-04T09:14:13.261Z",
> "modificationTime" : "2023-12-04T09:14:14.396Z",
> "replicationConfig" : {
> "replicationFactor" : "THREE",
> "requiredNodes" : 3,
> "replicationType" : "RATIS"
> },
> "metadata" : { },
> "file" : true
> }, {
> "volumeName" : "s3v",
> "bucketName" : "fso",
> "name" : "dir1/1/",
> "dataSize" : 5,
> "creationTime" : "2023-12-04T09:14:13.261Z",
> "modificationTime" : "2023-12-04T09:14:14.396Z",
> "replicationConfig" : {
> "replicationFactor" : "THREE",
> "requiredNodes" : 3,
> "replicationType" : "RATIS"
> },
> "metadata" : { },
> "file" : true
> }, {
> "volumeName" : "s3v",
> "bucketName" : "fso",
> "name" : "dir1/1/",
> "dataSize" : 5,
> "creationTime" : "2023-12-04T09:14:13.261Z",
> "modificationTime" : "2023-12-04T09:14:14.396Z",
> "replicationConfig" : {
> "replicationFactor" : "THREE",
> "requiredNodes" : 3,
> "replicationType" : "RATIS"
> },
> "metadata" : { },
> "file" : true
> }, {
> "volumeName" : "s3v",
> "bucketName" : "fso",
> "name" : "dir1/1/",
> "dataSize" : 5,
> "creationTime" : "2023-12-04T09:14:13.261Z",
> "modificationTime" : "2023-12-04T09:14:14.396Z",
> "replicationConfig" : {
> "replicationFactor" : "THREE",
> "requiredNodes" : 3,
> "replicationType" : "RATIS"
> },
> "metadata" : { },
> "file" : true
> }, {
> "volumeName" : "s3v",
> "bucketName" : "fso",
> "name" : "dir1/1/",
> "dataSize" : 5,
> "creationTime" : "2023-12-04T09:14:13.261Z",
> "modificationTime" : "2023-12-04T09:14:14.396Z",
> "replicationConfig" : {
> "replicationFactor" : "THREE",
> "requiredNodes" : 3,
> "replicationType" : "RATIS"
> },
> "metadata" : { },
> "file" : true
> }, {
> ......
> ......{code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]