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: don't panic if envContext is closed twice #417

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

cwaldren-ld
Copy link
Contributor

@cwaldren-ld cwaldren-ld commented Jul 16, 2024

It was possible for Close() to be invoked concurrently, which would cause a data race on some of the cleanup tasks (including closing other channels.)

This specifically fixes a panic when using a combination of exitAlways=1 and ignoreConnectionErrors=1.

@cwaldren-ld cwaldren-ld marked this pull request as ready for review July 17, 2024 17:52
@cwaldren-ld cwaldren-ld requested a review from a team as a code owner July 17, 2024 17:52
@cwaldren-ld cwaldren-ld merged commit 36f3168 into v8 Aug 5, 2024
9 checks passed
@cwaldren-ld cwaldren-ld deleted the cw/sc-177205/panic-on-close-oneshot branch August 5, 2024 21:22
@github-actions github-actions bot mentioned this pull request Aug 5, 2024
cwaldren-ld pushed a commit that referenced this pull request Aug 5, 2024
🤖 I have created a release *beep* *boop*
---


##
[8.9.1](v8.9.0...v8.9.1)
(2024-08-05)


### Bug Fixes

* **deps:** update Dockerfiles from alpine:3.20.1 to alpine:3.20.2
([#419](#419))
([3d6e5ae](3d6e5ae))
* don't panic if envContext is closed twice
([#417](#417))
([36f3168](36f3168))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants