[
https://issues.apache.org/jira/browse/HDDS-8502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mohammad Arafat Khan updated HDDS-8502:
---------------------------------------
Description:
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.
was:containerManager.getContainers will return the prevKey. We should remove
it in the return response.{*}{*}
> 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]