Skip to content

fix: handle LakeFS pagination to return all results beyond default 100-item limit#4349

Open
xuang7 wants to merge 1 commit intoapache:mainfrom
xuang7:fix/uncommitted-objects-100-limit
Open

fix: handle LakeFS pagination to return all results beyond default 100-item limit#4349
xuang7 wants to merge 1 commit intoapache:mainfrom
xuang7:fix/uncommitted-objects-100-limit

Conversation

@xuang7
Copy link
Copy Markdown
Contributor

@xuang7 xuang7 commented Apr 6, 2026

What changes were proposed in this PR?

This PR fixes the issue where retrieveUncommittedObjects and retrieveObjectsOfVersion only returned the first page of results (default 100 items). It adds a fetchAllPages method to retrieve the full result set across all pages. Each request sets .amount(1000) to reduce the number of round trips when fetching paginated results.

When uploading 141 files:

Before (only display 0-99) After (0-140)
before after

Any related issues, documentation, discussions?

Resolves #4343

How was this PR tested?

Added a test that uploads 110 files to a temporary repo and verifies that both retrieveUncommittedObjects (before commit) and retrieveObjectsOfVersion (after commit) return all 110 items.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Opus 4.6

@chenlica
Copy link
Copy Markdown
Contributor

chenlica commented Apr 6, 2026

@carloea2 Please review it before @aicam does the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Large directory upload shows only 100 completed files

2 participants