x/sync/singleflight: occasional failures in TestForget #42092
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
The failing test is the regression test added for #31420 (CC @cuonglm @bradfitz).
The bug appears to be in the test:
https://github.com/golang/sync/blob/b3e1573b75205f2905c4b27986413d2e2be9803c/singleflight/singleflight_test.go#L153-L157
In that section, nothing guarantees that the
second
invocation is still running wheng.Do
is evaluated. (Thesecond
goroutine can complete immediately afterclose(secondCh)
, causing the third invocation to be evaluated.)2020-10-08T14:14:35-b3e1573/android-386-emu
2019-09-11T18:51:00-cd5d95a/freebsd-amd64-race
2019-04-23T02:48:10-1122301/freebsd-amd64-race
2019-04-23T02:48:10-1122301/windows-amd64-race
The text was updated successfully, but these errors were encountered: