Skip to content

fix(io): stabilize wrapper identity in object store cache - #8068

Merged
BubbleCal merged 2 commits into
mainfrom
xuanwo/fix-object-store-wrapper-cache-identity
Jul 29, 2026
Merged

fix(io): stabilize wrapper identity in object store cache#8068
BubbleCal merged 2 commits into
mainfrom
xuanwo/fix-object-store-wrapper-cache-identity

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

ObjectStoreParams currently uses the full fat pointer of Arc<dyn WrappingObjectStore> as the cache identity. Trait-object vtable addresses can differ across codegen units even when both values point to the same Arc allocation. Equivalent parameters can therefore compare unequal and split the object-store registry cache; for memory://, the miss creates a fresh empty store and concurrent dataset operations can fail with DatasetNotFound under optimized builds.

Wrapper cache identity should follow the underlying Arc allocation rather than vtable metadata so the same wrapper reliably reuses the same store.

@github-actions github-actions Bot added A-encoding Encoding, IO, file reader/writer bug Something isn't working labels Jul 29, 2026
@Xuanwo
Xuanwo marked this pull request as ready for review July 29, 2026 08:10
@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@BubbleCal
BubbleCal merged commit ea231eb into main Jul 29, 2026
39 checks passed
@BubbleCal
BubbleCal deleted the xuanwo/fix-object-store-wrapper-cache-identity branch July 29, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-encoding Encoding, IO, file reader/writer bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants