Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server: add StoreIDs to SpanStats response #130049

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Sep 3, 2024

This commit adds a new response field to the
SpanStats rpc, StoreIDs which is a list of
unique store ids in ascending order that store
the requested span.

Fixes: #129060
Release note: None

Copy link

blathers-crl bot commented Sep 3, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

This commit adds a new response field to the
SpanStats rpc, `StoreIDs` which is a list of
unique store ids in ascending order that store
the requestd span.

Fixes: cockroachdb#129060
Release note: None
@xinhaoz xinhaoz force-pushed the span-stats-store-ids branch from f09d80e to fbd2ae6 Compare September 4, 2024 15:05
@xinhaoz xinhaoz marked this pull request as ready for review September 4, 2024 15:20
@xinhaoz xinhaoz requested review from a team as code owners September 4, 2024 15:20
@xinhaoz xinhaoz requested review from angles-n-daemons and removed request for a team September 4, 2024 15:21
// Verify stats across different spans.
for _, tcase := range testCases {
rSpan, err := keys.SpanAddr(tcase.span)
require.NoError(t, err)

// Assert expected values from multi-span request
spanStats := multiResult.SpanToStats[tcase.span.String()]
if !equalStoreIDs([]roachpb.StoreID{1, 2, 3}, spanStats.StoreIDs) {
Copy link
Contributor

@angles-n-daemons angles-n-daemons Sep 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, great test

Copy link
Contributor

@angles-n-daemons angles-n-daemons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @xinhaoz)

@xinhaoz
Copy link
Member Author

xinhaoz commented Sep 6, 2024

TFTR!
bors r+

@craig craig bot merged commit f3519c0 into cockroachdb:master Sep 6, 2024
23 checks passed
@xinhaoz xinhaoz deleted the span-stats-store-ids branch September 20, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

server: add unique store ids to SpanStats response
3 participants