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

storage-client: don't panic if PersistWriteWorker disappears #20975

Merged

Conversation

sploiselle
Copy link
Contributor

On shutdown, the PersistWriteWorker can disappear while we're awaiting it to write. This can happen during shutdown, so handle this situation gracefully by returning errors to the listeners.

Motivation

This PR fixes a recognized bug. Multiple CI failures.

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:

On shutdown, the PersistWriteWorker can disappear while we're awaiting
it to write. This can happen during shutdown, so handle this situation
gracefully by returning errors to the listeners.
@sploiselle sploiselle requested a review from a team August 3, 2023 16:49
Copy link
Contributor

@guswynn guswynn left a comment

Choose a reason for hiding this comment

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

looks good!

@sploiselle sploiselle merged commit fadd895 into MaterializeInc:main Aug 3, 2023
61 checks passed
@sploiselle sploiselle deleted the collection-mgmt-shutdown branch August 3, 2023 18:26
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.

None yet

2 participants