Repository navigation
io: reduce redundant snapshot metadata requests - #1572
Merged
Merged
Conversation
Read known snapshot objects directly when no local block cache is active. Map only missing-object errors to SnapshotNotExist, preserve permission and service failures, and retain existence checks for cached snapshots so external expiration cannot revive a deleted snapshot from the cache. Co-Authored-By: Codex <noreply@anthropic.com> AI-Model: gpt-6 Co-Authored-By: Codex <noreply@ai-tool.com> AI-Contributed/Feature: 155/155 AI-Contributed/UT: 0/0
Use the optional Jindo object-metadata API for private file-only existence checks. Keep generic directory semantics, propagate storage errors, and fall back to filesystem status when the SDK lacks the complete capability. Retain the SDK library through result cleanup and check object sizes. Add real SDK HTTP request and fallback coverage to the existing CI job. Co-Authored-By: Codex <noreply@anthropic.com> AI-Model: gpt-6 Co-Authored-By: Codex <noreply@ai-tool.com> AI-Contributed/Feature: 335/335 AI-Contributed/UT: 0/0
Contributor
|
[P2] Use a portable table path in the cached-snapshot regression. The Windows unit job fails in |
Pass the temporary directory as a native absolute path. Prefixing a Windows drive path with file: creates an invalid filename before the regression can verify that externally expired snapshots are not revived from local cache. Co-Authored-By: Codex <noreply@anthropic.com> AI-Model: gpt-6 Co-Authored-By: Codex <noreply@ai-tool.com> AI-Contributed/Feature: 3/3 AI-Contributed/UT: 0/0
JingsongLi
approved these changes
Dec 2, 2026
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.
Purpose
Snapshot discovery makes redundant metadata requests on object storage. Uncached snapshot loads check existence before reading an already known object path. For Jindo-backed OSS, filesystem-style checks of a missing snapshot may additionally probe a directory and the bucket root.
Brief change log
Tests
[HEAD, GET]instead of[GET].cargo +1.95.0 test --locked --offline -p paimon --features storage-jindo --lib table::snapshot_manager: 27 passed, including remote expiration of a populated local cache and REST error behavior.... table::time_travel: 24 passed;... io::file_io: 86 passed;... io::storage_jindo: 12 passed (the SDK-specific test is run explicitly below).cargo +1.95.0 fmt --all --checkandgit diff --check: passed.These are correctness and request-count tests using a local HTTP fixture, not a new OSS latency benchmark.
API and Format
No public API, storage-format, or configuration changes. The file-only Jindo operator initializes a separate SDK client once per bucket; request-count improvements should not be interpreted as a measured cold-start speedup.
Documentation
The cache-expiration safeguard and optional SDK capability fallback are explained in code. No new end-to-end benchmark speedup is claimed by this PR.
CI follow-up
The cached-snapshot regression now uses the temporary directory's native absolute path. Constructing
file:C:\...produced an invalid Windows filename before the expiration assertions could run. The cache-population and external-deletion assertions are unchanged.The two get-snapshot regressions and two existing Windows path-normalization tests pass locally on macOS; the actual Windows result is checked by the new CI run. The prior macOS job was canceled by fail-fast after the Windows failure, not by an independent macOS test failure.