You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hello there, We are using nutsdb as a local k/v store in our project.
Our use case involves opening the db for a few seconds -> minutes & then closing it.
Over time we notice in our monitors that the number of ongoing goroutines keep increasing:
We manually checked the stack traces & noticed that following goroutines increase in number:
[Goroutine 25 in state chan receive, with github.com/nutsdb/nutsdb.(*DB).doWrites on top of the stack:
github.com/nutsdb/nutsdb.(*DB).doWrites(0x14000820dc0)
/Users/ocohen1/go/pkg/mod/github.com/nutsdb/nutsdb@v1.0.4/db.go:349 +0xd4
created by github.com/nutsdb/nutsdb.open in goroutine 23
/Users/ocohen1/go/pkg/mod/github.com/nutsdb/nutsdb@v1.0.4/db.go:116 +0x6e0
]
Describe the bug
Hello there, We are using nutsdb as a local k/v store in our project.
Our use case involves opening the db for a few seconds -> minutes & then closing it.
Over time we notice in our monitors that the number of ongoing goroutines keep increasing:
We manually checked the stack traces & noticed that following goroutines increase in number:
We checked this against 2 well known leak detection packages - Both agreed on the leak source.
https://github.com/uber-go/goleak
https://github.com/fortytw2/leaktest
To Reproduce
Steps to reproduce the behavior(Be specific!):
Expected behavior
No leftover Goroutines should be alive after calling db.Close()
What actually happens
Goroutines keep running in the background
Screenshots
please complete the following information :
Additional context
The text was updated successfully, but these errors were encountered: