[
https://issues.apache.org/jira/browse/HDDS-16673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-16673:
----------------------------------
Labels: pull-request-available (was: )
> Avoid redundant ListBuckets RPCs when S3 bucket listing reaches the end
> -----------------------------------------------------------------------
>
> Key: HDDS-16673
> URL: https://issues.apache.org/jira/browse/HDDS-16673
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Huang Kuan Hao
> Assignee: Huang Kuan Hao
> Priority: Major
> Labels: pull-request-available
>
> RootEndpoint calls hasNext() again to determine whether a continuation token
> is needed after the listing loop has already reached the end. The bucket
> iterator fetches the same empty page again, adding a redundant ListBuckets
> RPC to non-empty final pages in paginated ListBuckets and
> ListDirectoryBuckets requests.
> Avoid probing the exhausted iterator again, while retaining the lookahead
> needed for full pages and the existing listing behavior.
> AWS API references:
> [ListBuckets|https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html],
>
> [ListDirectoryBuckets|https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListDirectoryBuckets.html].
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]