Skip to content

server: (re-)fix data race in server initialization#101148

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
irfansharif:230410.disk-map-race
Apr 10, 2023
Merged

server: (re-)fix data race in server initialization#101148
craig[bot] merged 1 commit intocockroachdb:masterfrom
irfansharif:230410.disk-map-race

Conversation

@irfansharif
Copy link
Copy Markdown
Contributor

Fixes #91414.
Fixes #101010.
Fixes #100902.

There was a race between registerEnginesForDiskStatsMap and SetPebbleMetricsProvider, the latter making use of a map constructed by the former but appeared in the opposite order in code.

Release note: None

@irfansharif irfansharif requested review from knz and sumeerbhola April 10, 2023 18:45
@irfansharif irfansharif requested a review from a team as a code owner April 10, 2023 18:45
@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Apr 10, 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
Copy Markdown
Member

This change is Reviewable

Fixes cockroachdb#91414.
Fixes  cockroachdb#101010.
Fixes cockroachdb#100902.

There was a race between registerEnginesForDiskStatsMap and
SetPebbleMetricsProvider, the latter making use of a map constructed by
the former but appeared in the opposite order in code.

Release note: None
@irfansharif irfansharif force-pushed the 230410.disk-map-race branch from 1e86708 to 2ef89c9 Compare April 10, 2023 18:50
@irfansharif
Copy link
Copy Markdown
Contributor Author

CI failure is #101021.

bors r+

@irfansharif irfansharif added backport-22.2.x backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only labels Apr 10, 2023
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Apr 10, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only

Projects

None yet

3 participants