-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
TestCompletenessInit
race condition
#19294
Comments
Took 10-15 minutes to reproduce locally, but I was able to trigger it.
|
The stack traces above were interesting, so I took a look. I believe the core issue is with the Here is a small test replicating the issue with only func TestRaceErrorWrap(t *testing.T) {
baseErr := trace.BadParameter("foo")
iters := 1000
wg := sync.WaitGroup{}
wg.Add(2)
// trace.Wrap with user message
go func() {
for i := 0; i < iters; i++ {
_ = trace.Wrap(baseErr, "foo bar %q", "baz")
}
wg.Done()
}()
// plain Error() call
go func() {
for i := 0; i < iters; i++ {
_ = baseErr.Error()
}
wg.Done()
}()
wg.Wait()
} Running with I think this should be fixed by making |
Just hit this in a v10 UT run: https://console.cloud.google.com/cloud-build/builds/94c44426-d06c-4f8b-bd28-3a349a64651f?project=ci-account |
Reopening as v9 and v10 are still affected. |
Failure
Link(s) to logs
Relevant snippet
The text was updated successfully, but these errors were encountered: