Skip to content

Conversation

@tbg
Copy link
Member

@tbg tbg commented Jul 27, 2023

It was previously possible to make a new peer while the old one was in the
middle of being deleted, which caused a crash due to to acquiring child metrics
when they still existed.

Luckily, this is easy enough to fix: just remove some premature optimization
where I had tried to be too clever.

Fixes #105335.

Epic: CRDB-21710
Release note: None (bug never released)

It was previously possible to make a new peer while the old one was in the
middle of being deleted, which caused a crash due to to acquiring child metrics
when they still existed.

Luckily, this is easy enough to fix: just remove some premature optimization
where I had tried to be too clever.

Fixes cockroachdb#105335.

Epic: CRDB-21710
Release note: None (bug was never shipped in a release; it's new as of cockroachdb#99191).
@blathers-crl
Copy link

blathers-crl bot commented Jul 27, 2023

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

@tbg tbg marked this pull request as ready for review July 27, 2023 12:14
@tbg tbg requested a review from a team as a code owner July 27, 2023 12:14
@tbg tbg requested a review from erikgrinaker July 27, 2023 12:14
@tbg
Copy link
Member Author

tbg commented Jul 28, 2023

bors r=erikgrinaker
TFTR!

@erikgrinaker
Copy link
Contributor

bors r+

@craig craig bot merged commit c0aabf1 into cockroachdb:master Jul 28, 2023
@craig
Copy link
Contributor

craig bot commented Jul 28, 2023

Build succeeded:

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.

rpc: panic in per-peer metrics

3 participants