Repository navigation
Azure: fix listObjects dropping the endpoint prefix on pages after the first - #112872
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [dd77f30] Summary: ✅
AI ReviewSummaryThis PR fixes Final Verdict✅ No new findings. LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 14/14 (100.00%) · Uncovered code |
This was referenced Aug 1, 2026
Open
Closed
Contributor
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 14/14 (100.00%) · Uncovered code |
Attaches a MergeTree table read-only from a metadata_type=plain Azure disk with a prefixed endpoint and list_object_keys_size=1, so reading it back lists blobs across more than one page via MetadataStorageFromPlainObjectStorage::listDirectory -> AzureObjectStorage::listObjects. Fails on master (pages after the first keep the raw endpoint prefix, so the parts are unreadable and SELECT returns 0 rows); passes with the fix.
The flaky check runs the module on several xdist workers at once; they raced on the shared _gen/disk_storage_conf.xml, so one worker's server could read another worker's azurite port and get persistent connection refusals. Name the generated config per worker, and route the azurite-touching queries through azure_query for the known transient error classes.
arsenmuk
force-pushed
the
arsenmuk/az-listobjects-prefix
branch
from
August 5, 2026 06:40
7882ff9 to
dd77f30
Compare
arsenmuk
marked this pull request as ready for review
August 5, 2026 06:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem. On a prefixed-endpoint Azure disk,
listObjectsreturns wrong blob names on every page after the first: the client wrapper strips the endpoint prefix, but the SDK'sMoveToNextPage()refetches pages 2..N directly and leaves the raw Azure prefix on their names. Failure scenario:Fix. Paginate with the continuation token, re-entering the wrapper each page so every page's names are stripped.
Changes.
Disks/…/AzureBlobStorage/AzureObjectStorage::listObjects: drive pagination viaContinuationTokeninstead ofMoveToNextPage.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed
listObjectson a prefixed-endpoint Azure Blob Storage disk returning wrong blob names on every page after the first, because pagination bypassed the client wrapper that strips the endpoint prefix. Pagination now re-enters the wrapper via the continuation token so every page's blob names are correct.