Skip to content
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

race condition bug or a flaky test: TestAddMultipleGCLive #10487

Open
lidel opened this issue Aug 21, 2024 · 0 comments
Open

race condition bug or a flaky test: TestAddMultipleGCLive #10487

lidel opened this issue Aug 21, 2024 · 0 comments
Labels
kind/bug A bug in existing code (including security flaws) kind/test Testing work need/triage Needs initial labeling and prioritization topic/test failure Topic test failure

Comments

@lidel
Copy link
Member

lidel commented Aug 21, 2024

Not sure if this is a flaky test, or a sign of underlying bug.
We should look into this in spare time.

Confirmed this is pretty old bug, reproduces with v0.23.0 and v0.29.0, and the latest master for 0.30.0-rc1.

Not a big surprise, MFS has always been flaky (#8131),
just documenting here so the next person does not waste time on debugging "new bug".

To reproduce, keep runing TestAddMultipleGCLive many times, it will eventually deadlock on something and produce a timeout:

$ while go test -run TestAddMultipleGCLive -count 100 -timeout 10s ./core/coreunix/...; do sleep 1; done
ok  	github.com/ipfs/kubo/core/coreunix	0.241s
ok  	github.com/ipfs/kubo/core/coreunix	0.339s
ok  	github.com/ipfs/kubo/core/coreunix	0.267s
ok  	github.com/ipfs/kubo/core/coreunix	0.253s
panic: test timed out after 10s
	running tests:
		TestAddMultipleGCLive (10s)
[.. a long stack for panic ..] 
@lidel lidel added kind/bug A bug in existing code (including security flaws) topic/test failure Topic test failure kind/test Testing work need/triage Needs initial labeling and prioritization labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) kind/test Testing work need/triage Needs initial labeling and prioritization topic/test failure Topic test failure
Projects
None yet
Development

No branches or pull requests

1 participant