Skip to content

cli: Fix for a race condition in the teardown of demo cluster#58972

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
lunevalex:alex/fix-demo-locality
Jan 13, 2021
Merged

cli: Fix for a race condition in the teardown of demo cluster#58972
craig[bot] merged 1 commit intocockroachdb:masterfrom
lunevalex:alex/fix-demo-locality

Conversation

@lunevalex
Copy link
Copy Markdown

Fixes #58959
A change made in #57123 introduced a race condition into the tear
down of the demo cluster. On shutdown the storage engines for
some servers could get closed, before the server itself is stopped,
which leads to panics in Pebble. This change makes sure that all the
servers are stopped before we close the in memory sticky storage engines.

Release note: None

Fixes cockroachdb#58959
A change made in cockroachdb#57123 introduced a race condition into the tear
down of the demo cluster. On shutdown the storage engines for
some servers could get closed, before the server itself is stopped,
which leads to panics in Pebble. This change makes sure that all the
servers are stopped before we close the in memory sticky storage engines.

Release note: None
@lunevalex lunevalex requested a review from a team as a code owner January 13, 2021 20:51
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@lunevalex
Copy link
Copy Markdown
Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 13, 2021

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Jan 13, 2021

Build succeeded:

@craig craig bot merged commit 55d9331 into cockroachdb:master Jan 13, 2021
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.

cli: Example_demo_locality fails with "pebble: closed" panic

3 participants