linkedin / PalDB

An embeddable write-once key-value store written in Java
Apache License 2.0
939 stars 178 forks source link

got IllegalArgumentException when writer.close, with 100,000,000 keys #34

Open nwuns opened 6 years ago

nwuns commented 6 years ago

I am building a paldb with 100,000,000 keys. Exception as below, with all default value config: java.lang.IllegalArgumentException: null at java.nio.Buffer.position(Buffer.java:244) ~[na:1.8.0_171] at com.linkedin.paldb.impl.StorageWriter.buildIndex(StorageWriter.java:311) ~[paldb-1.2.0.jar!/:na] at com.linkedin.paldb.impl.StorageWriter.close(StorageWriter.java:185) ~[paldb-1.2.0.jar!/:na] at com.linkedin.paldb.impl.WriterImpl.close(WriterImpl.java:96) ~[paldb-1.2.0.jar!/:na]

while db with 10,000,000 keys in same program is OK.