Skip to content
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

NullPointerException in VersionSet #103

Open
liukun4515 opened this issue Mar 3, 2019 · 2 comments
Open

NullPointerException in VersionSet #103

liukun4515 opened this issue Mar 3, 2019 · 2 comments

Comments

@liukun4515
Copy link

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.

@pcmind
Copy link
Contributor

pcmind commented Mar 3, 2019

Are you not closing the DB concurrently?

@liukun4515
Copy link
Author

liukun4515 commented Mar 4, 2019

Are you not closing the DB concurrently?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants