You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Zita Dombi (Jira)" <ji...@apache.org> on 2023/05/23 10:05:00 UTC

[jira] [Resolved] (HDDS-8502) Recon - getContainers API is not giving expected response with prevKey

     [ https://issues.apache.org/jira/browse/HDDS-8502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Zita Dombi resolved HDDS-8502.
------------------------------
    Fix Version/s: 1.4.0
       Resolution: Fixed

> 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
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org