[
https://issues.apache.org/jira/browse/HDDS-8502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17723460#comment-17723460
]
Mohammad Arafat Khan commented on HDDS-8502:
--------------------------------------------
https://github.com/apache/ozone/pull/4724
> Recon - getContainers API is not giving expected response with prevKey
> -----------------------------------------------------------------------
>
> Key: HDDS-8502
> URL: https://issues.apache.org/jira/browse/HDDS-8502
> Project: Apache Ozone
> Issue Type: Bug
> Components: Ozone Recon
> Reporter: Devesh Kumar Singh
> Assignee: Mohammad Arafat Khan
> Priority: Major
>
> Make changes to the *getContainers()* method of the container Endpoint, so
> that we skip the prevKey parameter from the list of containers in the
> ContainerResponse. And also add the ID of the *prevKey/LastContainerFetched*
> from the list of containers as a separate response parameter.
> The importance of these changes is to skip the container with the same ID as
> prevKey from the returned results. By increasing the limit by 1 and filtering
> out the container, the method *getContainers()* will ensure that the results
> start from the container after prevKey and the container specified by prevKey
> itself is excluded. Additionally, the last container ID is provided in the
> response to facilitate pagination or subsequent requests with the new prevKey
> value.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]