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
net/http/httptest: race in Close #51799
Comments
Fixes golang#51799 Signed-off-by: Maisem Ali <maisem@tailscale.com>
Fixes golang#51799 Signed-off-by: Maisem Ali <maisem@tailscale.com>
Related to golang#51799 Signed-off-by: Maisem Ali <maisem@tailscale.com>
Related to golang#51799 Fixes tailscale/corp#4393 Signed-off-by: Maisem Ali <maisem@tailscale.com>
Fixes golang#51799 Signed-off-by: Maisem Ali <maisem@tailscale.com>
When run with race detector the test fails without the fix. Fixes golang#51799
Change https://go.dev/cl/393974 mentions this issue: |
When run with race detector the test fails without the fix. Fixes golang#51799
When run with race detector the test fails without the fix. Fixes golang#51799
When run with race detector the test fails without the fix. Fixes golang#51799
When run with race detector the test fails without the fix. Fixes golang#51799
@gopherbot please open backports for Go 1.18 |
Backport issue(s) opened: #51897 (for 1.18). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
@rsc fwiw the original change was cherry-picked on 1.16 so I'm almost sure this is also a problem in 1.17, but I haven't tested it on those versions yet. |
Verified that the newly added test in #51805 also fails on |
also fails on |
There's a race condition in the h2_bundle.go of go 1.17 and later. The issue golang/go#51799 mentions that this might be fixed in go 1.19, so we'll need to wait for that. We make sure we build our docker images with go 1.16.8 to not run into the issue in the wild.
There's a race condition in the h2_bundle.go of go 1.16.10 and later. The issue golang/go#51799 mentions that this might be fixed in go 1.19, so we'll need to wait for that. We make sure we build our docker images with go 1.16.9 to not run into the issue in the wild.
There's a race condition in the h2_bundle.go of go 1.16.10 and later. The issue golang/go#51799 mentions that this might be fixed in go 1.19, so we'll need to wait for that. We make sure we build our docker images with go 1.16.9 to not run into the issue in the wild.
When run with race detector the test fails without the fix. Fixes golang#51799 Change-Id: I273adb6d3a2b1e0d606b9c27ab4c6a9aa4aa8064 GitHub-Last-Rev: a5ddd14 GitHub-Pull-Request: golang#51805 Reviewed-on: https://go-review.googlesource.com/c/go/+/393974 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Trust: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> (cherry picked from commit 1d19cea)
When run with race detector the test fails without the fix. Fixes golang#51799 Change-Id: I273adb6d3a2b1e0d606b9c27ab4c6a9aa4aa8064 GitHub-Last-Rev: a5ddd14 GitHub-Pull-Request: golang#51805 Reviewed-on: https://go-review.googlesource.com/c/go/+/393974 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Trust: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> (cherry picked from commit 1d19cea)
Note that we don't have a backport for 1.17, and #51897 is waiting for a cherrypick CL to be created. |
When run with race detector the test fails without the fix. Fixes golang#51799 Change-Id: I273adb6d3a2b1e0d606b9c27ab4c6a9aa4aa8064 GitHub-Last-Rev: a5ddd14 GitHub-Pull-Request: golang#51805 Reviewed-on: https://go-review.googlesource.com/c/go/+/393974 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Trust: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> (cherry picked from commit 1d19cea)
@gopherbot please open backport for Go 1.17 Backporting to 1.18 seems reasonable, and if we're doing that we should do 1.17 as well. Edit: Oh right, gopherbot only acts once on backport requests. Creating manually. |
Change https://go.dev/cl/401317 mentions this issue: |
Change https://go.dev/cl/401318 mentions this issue: |
When run with race detector the test fails without the fix. For #51799 Fixes #52455 Change-Id: I273adb6d3a2b1e0d606b9c27ab4c6a9aa4aa8064 GitHub-Last-Rev: a5ddd14 GitHub-Pull-Request: #51805 Reviewed-on: https://go-review.googlesource.com/c/go/+/393974 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Trust: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> (cherry picked from commit 1d19cea) Reviewed-on: https://go-review.googlesource.com/c/go/+/401318 Reviewed-by: David Chase <drchase@google.com>
When run with race detector the test fails without the fix. For #51799 Fixes #51897 Change-Id: I273adb6d3a2b1e0d606b9c27ab4c6a9aa4aa8064 GitHub-Last-Rev: a5ddd14 GitHub-Pull-Request: #51805 Reviewed-on: https://go-review.googlesource.com/c/go/+/393974 Reviewed-by: Damien Neil <dneil@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Trust: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> (cherry picked from commit 1d19cea) Reviewed-on: https://go-review.googlesource.com/c/go/+/401317 Reviewed-by: David Chase <drchase@google.com>
#304829 added logic to ensure that user ConnState callbacks complete before
(*httptest.Server).Close
returns.The change however causes a race, if the order of events is
(sync.WaitGroup).Add(1)
When running tests with
-race
flag this is easily reproducible in our tests and is causing our CI to be flaky.This patches fixes the issue
cc @neild @bradfitz @josharian
The text was updated successfully, but these errors were encountered: