-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Question about misleading "unclosed iterators" error #522
Comments
Given that Go doesn't allow applications to directly control object destruction, it's hard to plan for what sort of error you'd run into if you call I removed the panic that you're seeing, and still saw this stack trace which is also present in your logs. The nil pointer dereference gave it away for me. Not sure if there's something we can do.
|
Thanks for the reply. I don't know alot about the underlying checks badger is doing, which is why I wondered if it was wrongly thinking iterators werent closed. Just was a red herring that made it more difficult to find the original bug. |
Hi. I had a question about some confusing behaviour I saw after I updated a project to use BadgerDB instead of BoltDB. I had some crashes in my unittests and the error message seemed to be a bit misleading: https://gist.github.com/justinfx/37d2d2a3d44a9e8f97a1adad4bee824c
The problem is that my defers are set up in a way that the Close would happen before the Update. I get that this is wrong. But the error message is talking about unclosed iterators. Is this a correct error? I kept looking for places where I didn't close an iterator, but finally figured out I was closing the db in the wrong order.
(I tried asking this first in the dgraph slack, but there doesn't seem to be anyone there)
The text was updated successfully, but these errors were encountered: