statistics: stop publishing tombstone store metrics in 7.5 - #11205
statistics: stop publishing tombstone store metrics in 7.5#11205lhy1024 wants to merge 1 commit into
Conversation
Signed-off-by: lhy1024 <19542290+lhy1024@users.noreply.github.com>
|
This cherry pick PR is for a release branch and has not yet been approved by triage owners. To merge this cherry pick:
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughChangesStore statistics cleanup
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This change removes stale scheduler metrics for tombstoned and deleted stores while retaining cluster-state metrics needed for monitoring. The covered cleanup paths and lifecycle tests indicate it is ready to merge. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai[bot]: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bufferflies, coderabbitai[bot] The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|


What problem does this PR solve?
Issue Number: close #11206, ref #9855, ref #9942
#10060 moved tombstone state handling from
ObserveintoobserveStoreStatuswithout preserving the outer early return. Unlike v7.5.7, release-7.5 now republishespd_scheduler_store_statusfor tombstone stores after bury-time cleanup. #10188 clearspd_cluster_statusat final deletion, but leaves the republished scheduler metrics behind.The v7.5.8 scale-in tests expose this in the subsequent region balance checks:
What is changed and how does it work?
This is a targeted release-7.5 fix. It does not backport the broader hotcache/filter/heartbeat cleanup from #11127.
Check List
Tests
go test ./pkg/statistics ./pkg/mcs/scheduling/server/meta -count=1.go test ./pkg/statistics ./pkg/mcs/scheduling/server/meta ./server/cluster -run 'Test.*(Store|Tomb|Bury)' -count=1 -timeout=120s.git diff --checkand gofmt.make checkis blocked during tool installation: the branch'sgolang.org/x/tools/internal/tokeninternalfails to compile with the local Go toolchain (invalid array length -delta * delta).Release note
Summary by CodeRabbit