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

Goroutine in TimeoutWheel leaks #23

Open
w-zr opened this issue Mar 11, 2022 · 0 comments
Open

Goroutine in TimeoutWheel leaks #23

w-zr opened this issue Mar 11, 2022 · 0 comments

Comments

@w-zr
Copy link

w-zr commented Mar 11, 2022

Test in Matrixcube failed because of goroutine leaks.

=== RUN   TestLogDBGetMaxIndexReturnsNoSavedLogErrorWhenMaxIndexIsNotSaved
    leak.go:138: Leaked goroutine: goroutine 141 [chan receive]:
        github.com/fagongzi/goetty/timewheel.(*TimeoutWheel).doTick(0xc0000c8080)
        	/matrixcube/vendor/github.com/fagongzi/goetty/timewheel/timewheel.go:291 +0x105
        created by github.com/fagongzi/goetty/timewheel.(*TimeoutWheel).Start
        	/matrixcube/vendor/github.com/fagongzi/goetty/timewheel/timewheel.go:227 +0x291
    leak.go:138: Leaked goroutine: goroutine 142 [chan receive]:
        github.com/fagongzi/goetty/timewheel.(*TimeoutWheel).doExpired(0xc0000c8080)
        	/matrixcube/vendor/github.com/fagongzi/goetty/timewheel/timewheel.go:379 +0x85
        created by github.com/fagongzi/goetty/timewheel.(*TimeoutWheel).Start
        	/matrixcube/vendor/github.com/fagongzi/goetty/timewheel/timewheel.go:228 +0x305
--- FAIL: TestLogDBGetMaxIndexReturnsNoSavedLogErrorWhenMaxIndexIsNotSaved (5.16s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant