deephacks / lmdbjni

LMDB for Java
Apache License 2.0
204 stars 28 forks source link

assertion failed in 0.4.5 #66

Closed stefanwouldgo closed 8 years ago

stefanwouldgo commented 8 years ago

src/mdb.c:5276: Assertion 'NUMKEYS(mp) > 1' failed in mdb_page_search_root() Aborted

after millions of writes and reads.

krisskross commented 8 years ago

Never encountered this myself. What's your env? Test to reproduce?

krisskross commented 8 years ago

Probably regression in LMDB if not observed in earlier versions.

stefanwouldgo commented 8 years ago

I haven't tried reproducing, since this occured after about 12h of running bitcoin graph explorer and I wanted to get our project running ASAP again. We get random LMDB errors (like MDB_BAD_VAL) from time to time and they are never reproducible. This one is new, though.

krisskross commented 8 years ago

There is an issue ITS#8336 reported on LMDB 0.9.17 (fixed in LMDB 0.9.18) which sounds similar to your problem. I would suggest you post your hardware spec, os and description of your problem to openldap-technical@openldap.org.

krisskross commented 8 years ago

LMDB 0.9.18 is in lmdbjni 0.4.6 btw.

krisskross commented 8 years ago

The fix of ITS#8336 removes the assertion which should solve your problem.

Let "illegal" branch pages thru on the FreeDB - the condition is only temporary and will be fixed by the time rebalance finishes.

krisskross commented 8 years ago

Not sure about the random MDB_BAD_VAL errors though. Might be related if the rebalance wasn't finished?

krisskross commented 8 years ago

Did you have time to try 0.4.6?

stefanwouldgo commented 8 years ago

We've been running 0.4.6 since then. No problems so far :)

krisskross commented 8 years ago

Glad to hear. Let me know when you feel comfortable closing the issue.

stefanwouldgo commented 8 years ago

You're right, this should be resolved by the fix you mentioned. So I'm closing this issue. Thank you very much for your quick and thorough help, and for making LMDB available to the JVM ecosystem!

krisskross commented 8 years ago

Thanks! :-)