Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-8802. Added pagination support for ListSnapshotDiff jobs #6543

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hemantk-12
Copy link
Contributor

What changes were proposed in this pull request?

This change is to provide the pagination logic to List SnapshotDiff jobs API.

What is the link to the Apache JIRA

HDDS-8802

How was this patch tested?

Existing unit test and manually tested on docker on local machine.

@hemantk-12 hemantk-12 added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Apr 16, 2024
@hemantk-12 hemantk-12 marked this pull request as draft May 7, 2024 18:19
Copy link
Contributor

@swamirishi swamirishi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the patch looks good to me. Currently the patch has merge conflicts and that needs to be resolved.


// If maxEntries are populated and list still has more entries,
// set the continuation token for the next page request otherwise null.
if (jobs.size() == maxEntries && iterator.hasNext()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Do we need the check job.size() == maxEntries ??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snapshot https://issues.apache.org/jira/browse/HDDS-6517
Projects
None yet
2 participants