Skip to content

kvserver: deflake TestRebalancingAndCrossRegionZoneSnapshotMetrics#167558

Merged
trunk-io[bot] merged 1 commit intocockroachdb:masterfrom
arulajmani:kv-deflake-167004
Apr 7, 2026
Merged

kvserver: deflake TestRebalancingAndCrossRegionZoneSnapshotMetrics#167558
trunk-io[bot] merged 1 commit intocockroachdb:masterfrom
arulajmani:kv-deflake-167004

Conversation

@arulajmani
Copy link
Copy Markdown
Collaborator

@arulajmani arulajmani commented Apr 5, 2026

Snapshot delegation is enabled by default, and getSenderReplicas can
pick server[1] as a delegate for the second snapshot if server[0] is
momentarily considered unhealthy by the store pool. When that happens,
the sent-bytes metrics land on the wrong server, failing the test's
assertions.

Disable delegation in this test, same as we already do in
TestSnapshotsToDrainingOrDecommissioningNodes.

Fixes-26.1 #167004

Epic: none
Release note: None

Snapshot delegation is enabled by default, and `getSenderReplicas` can
pick server[1] as a delegate for the second snapshot if server[0] is
momentarily considered unhealthy by the store pool. When that happens,
the sent-bytes metrics land on the wrong server, failing the test's
assertions. The math checks out too -- `599 + 822 = 1421 =
totalSnapshotLength`, exactly what you'd expect from a delegated
snapshot.

Fixes cockroachdb#167004

H/t to the investigator agent for the analysis on this one.

Release note: None
Epic: none

Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
@arulajmani arulajmani requested a review from a team as a code owner April 5, 2026 21:16
@trunk-io
Copy link
Copy Markdown
Contributor

trunk-io bot commented Apr 5, 2026

😎 Merged successfully - details.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@arulajmani arulajmani requested a review from angeladietz April 5, 2026 21:16
@arulajmani arulajmani added the backport-all Flags PRs that need to be backported to all supported release branches label Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-all Flags PRs that need to be backported to all supported release branches target-release-26.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants