Chung-En Lee created HDDS-17875:
-----------------------------------

             Summary: ListObjectsV2 keeps returning the same common prefix and 
never reaches later keys
                 Key: HDDS-17875
                 URL: https://issues.apache.org/jira/browse/HDDS-17875
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Chung-En Lee


Steps to reproduce:
# Create an OBS bucket with keys {{-x}}, {{a-b/x}}, {{a.txt}}, {{a/b/c}}, 
{{a/c}}, {{a0}}, {{b}}, {{dir/}}, {{dir/x}}, {{z/1}}.
# ListObjectsV2 with {{Prefix=a}}, {{Delimiter=/}}, {{MaxKeys=1}}, following 
NextContinuationToken.

Actual: after {{a-b/}} and {{a.txt}}, every page returns CommonPrefix {{a/}} 
with IsTruncated=true, and {{a0}} is never returned. With {{MaxKeys=3}}, {{a/}} 
is returned twice.
Expected: CommonPrefixes {{a-b/}} and {{a/}}, and Contents {{a.txt}} and 
{{a0}}, each returned once, as on AWS S3.

ListObjects (V1) with the same parameters returns the expected result. 
HDDS-17028 fixed repeated CommonPrefixes for V1 and ListObjectVersions.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to