-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
JNI RocksDB.close() async? #1080
Comments
Hi adamretter, I am at master (HEAD?). Is there another branch you would like me to try? The error (Assertion failed: (refs_.load(std::memory_order_relaxed) == 0)) shown up randomly in many of my unit test. Thanks, |
RocksJava has a fairly reasonable test suite which doesn't show this. Would you be able to contribute a test which shows this behaviour? |
Hi, I think I know a little bit more on this. In my code I use the default column family only. When I opened up a db using this method:
and closing it by first closing everything in So I switched to using this open method:
and just close the db it self, not any There seems to be a bug in the former way of opening/closing with only the default column family. Hope this helps. Sam |
There is another piece of related info. With With Have no idea why, just observation. |
Hi,
In my junit test case, I repeatedly write to rocks db, close it (by closing all rocks resource I can think of, then
RocksDB.close()
), delete the db, and start over again. At random time I would get this error:This error appears on random time of the test, always after the delete db. I suspect the
RocksDB.close()
is not completed yet in the background when the db is deleted in disk. Is this possible?In my test I use only default column family, so there is no need to close the column family explicitly. Is this correct?
Thanks,
Sam
The text was updated successfully, but these errors were encountered: