-
Notifications
You must be signed in to change notification settings - Fork 9.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
[release-3.4] Races in TestLessorRenewExtendPileup TestLessorDetach #18538
Comments
Minimal repro
|
I was also able to reproduce with === RUN TestLessorRenewExtendPileup
==================
WARNING: DATA RACE
Write at 0x0000014595b0 by goroutine 377:
go.etcd.io/etcd/lease.TestLessorRenewExtendPileup()
/home/james/Documents/etcd/lease/lessor_test.go:295 +0x289
testing.tRunner()
/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.22.7/libexec/src/testing/testing.go:1689 +0x21e
testing.(*T).Run.gowrap1()
/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.22.7/libexec/src/testing/testing.go:1742 +0x44
Previous read at 0x0000014595b0 by goroutine 187:
go.etcd.io/etcd/lease.(*lessor).revokeExpiredLeases()
/home/james/Documents/etcd/lease/lessor.go:631 +0x3a
go.etcd.io/etcd/lease.(*lessor).runLoop()
/home/james/Documents/etcd/lease/lessor.go:614 +0xe4
go.etcd.io/etcd/lease.newLessor.gowrap1()
/home/james/Documents/etcd/lease/lessor.go:238 +0x33
Goroutine 377 (running) created at:
testing.(*T).Run()
/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.22.7/libexec/src/testing/testing.go:1742 +0x825
testing.runTests.func1()
/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.22.7/libexec/src/testing/testing.go:2161 +0x85
testing.tRunner()
/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.22.7/libexec/src/testing/testing.go:1689 +0x21e
testing.runTests()
/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.22.7/libexec/src/testing/testing.go:2159 +0x8be
testing.(*M).Run()
/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.22.7/libexec/src/testing/testing.go:2027 +0xf17
main.main()
_testmain.go:93 +0x2bd
Goroutine 187 (running) created at:
go.etcd.io/etcd/lease.newLessor()
/home/james/Documents/etcd/lease/lessor.go:238 +0x590
go.etcd.io/etcd/lease.TestLessorCheckpointPersistenceAfterRestart.func1()
/home/james/Documents/etcd/lease/lessor_test.go:724 +0x7c4
testing.tRunner()
/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.22.7/libexec/src/testing/testing.go:1689 +0x21e
testing.(*T).Run.gowrap1()
/home/linuxbrew/.linuxbrew/Cellar/[email protected]/1.22.7/libexec/src/testing/testing.go:1742 +0x44
==================
testing.go:1398: race detected during execution of test |
Hi @serathius @jmhbnz, I was able to reproduce on the main branch as well with: cd server
go test ./lease/ --count 10 -v --race --failfast I fixed the race condition and verified by running the unit tests locally. I submitted a PR to fix: #18555 Looking forward to your feedback, thanks! |
Closing - Backports completed, many thanks @lucasrod16 for tackling this one! 🙏🏻 |
I appreciate the feedback and timely reviews! @jmhbnz @serathius @ahrtr I have been interested in getting involved with etcd as a regular contributor and will continue to look for things to help with. I hope to be able to start attending the community and triage meetings as well. Once again, thanks! |
Which Github Action / Prow Jobs are flaking?
Running
make test-unit
on release-3.4 branch detects races for meWhich tests are flaking?
TestLessorRenewExtendPileup and TestLessorDetach
Github Action / Prow Job link
No response
Reason for failure (if possible)
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: