[BugFix] Avoid redundant latestSnapshot() call in PaimonMetadata#getTableVersionRange (backport #72892) - #73121
Conversation
|
Cherry-pick of 0340ccd has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
@mergify[bot]: Backport conflict, please reslove the conflict and resubmit the pr |
|
@copilot fix the backport code conflict, ensure only the necessary code from main branch back ported to the target 3.5 branch. |
Agent-Logs-Url: https://github.com/StarRocks/starrocks/sessions/f7b819e7-7ac8-4970-843a-a1fddb40b31d Co-authored-by: kevincai <771299+kevincai@users.noreply.github.com>
Head branch was pushed to by a user without write access
Fixed in 3782b3f. The backport now removes the accidental conflict block and keeps only the intended latestSnapshot() caching change in branch-3.5. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@mergify backport branch-3.5-cc |
✅ Backports have been createdDetails
|
…ableVersionRange (backport #72892) (backport #73121) (#73430) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: haoyuhua <haoyuhua007@gmail.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kevincai <771299+kevincai@users.noreply.github.com>
What I'm doing:
Fixes #72891
Duplicate
latestSnapshot()in the same methodIn
PaimonMetadata.getRemoteFileInfos()(source):latestSnapshot()internally callsSnapshotManager.latestSnapshot()→latestSnapshotFromFileSystem()→ reads the S3 LATEST hint file every time. The result is never stored in a local variable.What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check:
This is an automatic backport of pull request [BugFix] Avoid redundant latestSnapshot() call in PaimonMetadata#getTableVersionRange #72892 done by Mergify.