-
Notifications
You must be signed in to change notification settings - Fork 18k
x/sync/singleflight: hangs after the first panic #41133
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
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Comments
Change https://golang.org/cl/251677 mentions this issue: |
Thanks for the report. It looks like it might be a duplicate of #33519. Is that your understanding too? |
@dmitshur It should be, I am sorry missing it when raising the issue |
Thanks for confirming—that is quite okay. I'll close this in favor of that issue. |
gopherbot
pushed a commit
to golang/sync
that referenced
this issue
Sep 30, 2020
When first Do panic, the related wait group will never be done, and all the subsequent calls would block on the same wait group forever. Fixes golang/go#41133 Change-Id: I0ad9bfb387b6133b10766a34fc0040f200eae27e Reviewed-on: https://go-review.googlesource.com/c/sync/+/251677 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> Trust: Ian Lance Taylor <iant@golang.org> Trust: Bryan C. Mills <bcmills@google.com>
sherifabdlnaby
pushed a commit
to sherifabdlnaby/sync
that referenced
this issue
Feb 24, 2021
When first Do panic, the related wait group will never be done, and all the subsequent calls would block on the same wait group forever. Fixes golang/go#41133 Change-Id: I0ad9bfb387b6133b10766a34fc0040f200eae27e Reviewed-on: https://go-review.googlesource.com/c/sync/+/251677 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> Trust: Ian Lance Taylor <iant@golang.org> Trust: Bryan C. Mills <bcmills@google.com>
anatoliinzrnk
added a commit
to anatoliinzrnk/go-sync
that referenced
this issue
Sep 25, 2024
When first Do panic, the related wait group will never be done, and all the subsequent calls would block on the same wait group forever. Fixes golang/go#41133 Change-Id: I0ad9bfb387b6133b10766a34fc0040f200eae27e Reviewed-on: https://go-review.googlesource.com/c/sync/+/251677 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Bryan C. Mills <bcmills@google.com> Trust: Ian Lance Taylor <iant@golang.org> Trust: Bryan C. Mills <bcmills@google.com>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I use singleflight to do something like creating a singleton client, all subsequent calls hang after the first panic.
Here is the code:
Using
curl
do tests after starting the above program, all requests are timeout expect the first.And cloud sees there are 19 goroutines get stuck in
singleflight.(*Group).Do
through goroutine stack tracesWhat did you expect to see?
All requests fail immediately
What did you see instead?
All requests are timeout expect the first
The text was updated successfully, but these errors were encountered: