leveldb icon indicating copy to clipboard operation
leveldb copied to clipboard

NullPointerException in VersionSet

Open liukun4515 opened this issue 5 years ago • 2 comments

java.lang.NullPointerException: null
	at org.iq80.leveldb.impl.VersionSet.numberOfFilesInLevel(VersionSet.java:233) ~[leveldb-0.11.jar:0.11]
	at org.iq80.leveldb.impl.DbImpl.makeRoomForWrite(DbImpl.java:824) ~[leveldb-0.11.jar:0.11]
	at org.iq80.leveldb.impl.DbImpl.writeInternal(DbImpl.java:688) ~[leveldb-0.11.jar:0.11]
	at org.iq80.leveldb.impl.DbImpl.write(DbImpl.java:670) ~[leveldb-0.11.jar:0.11]

Some error may occur when write the leveldb with the multi-thread.

liukun4515 avatar Mar 03 '19 02:03 liukun4515

Are you not closing the DB concurrently?

pcmind avatar Mar 03 '19 13:03 pcmind

Are you not closing the DB concurrently?

Thank you for your reply. yes, I close the db concurrently.

liukun4515 avatar Mar 04 '19 02:03 liukun4515