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

fix: wait for PGCoordinator to clean up db state #13351

Merged
merged 1 commit into from
May 24, 2024

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented May 23, 2024

c.f. #13192 (comment)

We need to wait for PGCoordinator to finish its work before returning on Close(), so that we delete database state (best effort -- if this fails others will filter it out based on heartbeats).

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @spikecurtis and the rest of your teammates on Graphite Graphite

@spikecurtis spikecurtis requested a review from coadler May 23, 2024 09:35
@spikecurtis spikecurtis marked this pull request as ready for review May 23, 2024 09:35
// has the effect of deleting the coordinator from the database and ceasing heartbeats.
c.binder.workerWG.Wait()
c.tunneler.workerWG.Wait()
c.handshaker.workerWG.Wait()
Copy link
Member

Choose a reason for hiding this comment

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

Ah, thanks for adding this.

@spikecurtis spikecurtis merged commit a0962ba into main May 24, 2024
31 checks passed
@spikecurtis spikecurtis deleted the spike/pgcoord-cleanup branch May 24, 2024 08:01
@github-actions github-actions bot locked and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants