wzhallright removed a comment on pull request #2154:
URL: https://github.com/apache/ozone/pull/2154#issuecomment-829973360


   > Thank you, @wzhallright to report this problem
   > 
   > Can you please give more information what is the original problem? What 
was your s3 request, and what was the expected result?
   > 
   > For me, the current behavior seems to be fine:
   > 
   > I tested it with creating keys in real AWS:
   > 
   > ```
   > aws s3api list-objects --bucket=ozonetest3  | grep Key
   >             "Key": "copyobject/f1",
   >             "Key": "key1",
   >             "Key": "test/dir1/file1",
   >             "Key": "test/dir1/file2",
   >             "Key": "test/dir1/file3",
   >             "Key": "test/dir2/file4",
   >             "Key": "test/dir2/file5",
   >             "Key": "test/dir2/file6",
   >             "Key": "test/dir3/file7",
   > ```
   > 
   > And executing aws cli:
   > 
   > ```
   > aws s3api list-objects --bucket=ozonetest3 --prefix=test/ --delimiter=/ 
--max-keys=2 {
   >     "IsTruncated": true,
   >     "Marker": "",
   >     "NextMarker": "test/dir2/",
   >     "Name": "ozonetest3",
   >     "Prefix": "test/",
   >     "Delimiter": "/",
   >     "MaxKeys": 2,
   >     "CommonPrefixes": [
   >         {
   >             "Prefix": "test/dir1/"
   >         },
   >         {
   >             "Prefix": "test/dir2/"
   >         }
   >     ],
   >     "EncodingType": "url"
   > }
   > ```
   > 
   > The result looks good to me. As the [documentation 
says](https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjects.html):
   > 
   > > These rolled-up keys are not returned elsewhere in the response. Each 
rolled-up result counts as only one return against the MaxKeys value.
   > 
   > But this behavior is implemented with the existing code in Ozone.
   > 
   > What did I miss?
   
   


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to