yahoo / mdbm

MDBM a very fast memory-mapped key/value store.
BSD 3-Clause "New" or "Revised" License
992 stars 111 forks source link

Fix NoClassDefFoundError and make delete methods throw MdbmNoEntryException #64

Closed hirkatou closed 8 years ago

hirkatou commented 8 years ago

In java implementation,

NoClassDefFoundError occurs when deleteing non existing key.

testDeleteNoEntry(com.yahoo.db.mdbm.TestV4)  Time elapsed: 0.023 sec  <<< FAILURE!
java.lang.NoClassDefFoundError: com/yahoo/db/mdbm/exceptions/MdbmDeleteException
        at com.yahoo.db.mdbm.internal.NativeMdbmAccess.mdbm_delete(Native Method)
        at com.yahoo.db.mdbm.internal.NativeMdbmImplementation.delete(NativeMdbmImplementation.java:99)
        at com.yahoo.db.mdbm.TestSimpleMdbm.testDeleteNoEntry(TestSimpleMdbm.java:214)

This PR implements 2 points.

areese commented 8 years ago

👍 Thanks.

yahoocla commented 8 years ago

CLA is valid!