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
ArrayIndexOutOfBoundsException with BTreeMap.put using v0.9.11 #308
Comments
This is how I create the DBMaker:
And this is how I create the Map:
I prepared a small example project that I could send you by mail. |
Hi, there was a race condition in |
I have a similar error with 9.11, also tried with 1.0.0 snapshot
I create my db as follows: DB db = DBMaker.newFileDB(new File("dbPath")).closeOnJvmShutdown().asyncWriteEnable().deleteFilesAfterClose()
.transactionDisable().mmapFileEnableIfSupported().make();
Map<String, NerEntity> hsId2Entity = db.getTreeMap("id2entity");
public class NerEntity extends Entity implements Serializable, Comparable<NerEntity>
{
private static final long serialVersionUID = 1334795226689152608L;
public float score = 0f;
public String textTrigger;
public String textTriggerTermPOS;
...} |
Looks like the error gets triggered when using |
Hi, I have the problem when I Pump data to a BTree and I have too much data. I tried to disable async stuff but it doesn't seem to help in that case |
I did a very simple test and I could reproduce the issue. It seems this option causes the problem Here is my test code
This throws an ArrayOutOfBoundsException IIF mmap is enabled I use Java 8 btw if it has any importance |
Thanks, last test case is very helpful. I will fix it very soon. |
great! keep in touch and keep up the good work |
This is now fixed. |
0.9.13 released with fix |
I am using MapDB version (1.0.1) and in PRODUCTION I am getting the following error. I am getting error java.lang.ArrayIndexOutOfBoundsException: 238011748 |
I am using MapDB version 1.0.1 and my code is pasted below. Please let me know whether i need to modify any thing in the below code. It would be great if some one helps me on this one. db = DBMaker |
@abarnashankar 1.0.1 is way too old, there were number of issues fixed since than. I would recommend to backup your data for start. |
Hi, It would be great if you could advice me of the steps I need to do. I even tried to use MapDB version 1.0.8 in my pom.xml and then when I tested, the error is the same. NOTE : It was working fine till few weeks back but then all of a sudden, it stopped working Code :
java.lang.ArrayIndexOutOfBoundsException: 238011748 Thanks and Regards @abarnashankarhttps://github.com/abarnashankar 1.0.1 is way too old, there were number of issues fixed since than. I would recommend to backup your data for start. — |
Thanks for your response.. I am happy to see your response… some one there to help me :) It would be great if you could advice me of the steps I need to do. I even tried to use MapDB version 1.0.8 in my pom.xml and then when I tested, the error is the same. NOTE : It was working fine till few weeks back but then all of a sudden, it stopped working Code :
java.lang.ArrayIndexOutOfBoundsException: 238011748 |
That exception says that size of data is |
I updated to MapDB 0.9.11 and I'm now getting a ArrayIndexOutOfBoundsException on BTreeMap.put after adding several entries. Looking at the MapDB file while adding entries it never exceed the size of 16 MB, whereas it was growing bigger before (~800MB).
I'm running on Win7 64bit, Java JDK 1.7.0_25 using DBMaker.newFileDB to create the DB. The same error happens also if I disable the cache or the asyncWrite feature. I will try to create a test case, but maybe this helps already.
The ArrayIndexOutOfBoundsException is always at different sizes.
The text was updated successfully, but these errors were encountered: