-
Notifications
You must be signed in to change notification settings - Fork 871
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
3.0 - Found null entry in ridbag with rid=#26:-2 #7481
Comments
basic analysis shows that when there are multiple look ups for the same vertex in the same transaction there seems to be problem. If I do not use FOR loop and read all vertices upfront and add edges, then it all works well. so must be easy to fix or there do you think this is wrong way of doing thing, but there is nothing stopping me to do multiple look ups and operate on the same vertex on differently.
|
hi @careerscale, Friday I pushed a couple of fixes on the tx and temporary rid generation and similar, I run your code with the last snapshot and seems to go smooth, so this should be fixed with the last snapshot. Regards |
@tglman @luigidellaquila , please let me know if a specific build is found to be stable and I will validate and if good we will move to use that DB instance only. I was waiting for HA feature merge into develop branch from 2.2.x, looks like it is not yet done. |
It's taking more than expected, I'm working on a separate local branch until is ok. |
the unit test code now breaks with different error. is this application problem? but the error is not clear so I think it could be bug.
|
hi @careerscale, This IllegalStateException error actually means that the are no more elements in the result set anymore, we replaced with NoSuchElementException recently should be already correct in the last snapshot. regards |
Hi @tglman , yah, I modified unit test and it looks OK. will verify in our application too and confirm |
This works good. |
OrientDB Version: 3.0
Java Version: 1.8
OS: Win 7
Expected behavior
code should work.
Actual behavior
`com.orientechnologies.orient.core.exception.OSerializationException: Found null entry in ridbag with rid=#26:-2
DB name="test1"
at com.orientechnologies.orient.core.db.record.ridbag.embedded.OEmbeddedRidBag.serialize(OEmbeddedRidBag.java:424)
at com.orientechnologies.orient.core.db.record.ridbag.ORidBag.toStream(ORidBag.java:269)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerNetworkV37.serializeValue(ORecordSerializerNetworkV37.java:498)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerNetworkV37.serialize(ORecordSerializerNetworkV37.java:149)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerNetworkV37.toStream(ORecordSerializerNetworkV37.java:775)
at com.orientechnologies.orient.client.remote.message.OMessageHelper.writeTransactionEntry(OMessageHelper.java:201)
at com.orientechnologies.orient.client.remote.message.OBeginTransactionRequest.write(OBeginTransactionRequest.java:76)
at com.orientechnologies.orient.client.remote.OStorageRemote$2.execute(OStorageRemote.java:215)
at com.orientechnologies.orient.client.remote.OStorageRemote$2.execute(OStorageRemote.java:210)
at com.orientechnologies.orient.client.remote.OStorageRemote.baseNetworkOperation(OStorageRemote.java:274)
at com.orientechnologies.orient.client.remote.OStorageRemote.networkOperationRetryTimeout(OStorageRemote.java:210)
at com.orientechnologies.orient.client.remote.OStorageRemote.networkOperation(OStorageRemote.java:238)
at com.orientechnologies.orient.client.remote.OStorageRemote.reBeginTransaction(OStorageRemote.java:1783)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentRemote.checkAndSendTransaction(ODatabaseDocumentRemote.java:258)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentRemote.command(ODatabaseDocumentRemote.java:292)
at org.apache.tinkerpop.gremlin.orientdb.OrientGraph.lambda$executeSql$1(OrientGraph.java:245)
at org.apache.tinkerpop.gremlin.orientdb.OrientGraph.executeWithConnectionCheck(OrientGraph.java:194)
at org.apache.tinkerpop.gremlin.orientdb.OrientGraph.executeSql(OrientGraph.java:243)
at com.orientdb.samples.test.RidBagErrorTest.testforRidBagError(RidBagErrorTest.java:75)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:661)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:869)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1193)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:126)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.privateRun(TestRunner.java:744)
at org.testng.TestRunner.run(TestRunner.java:602)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:380)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:375)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:340)
at org.testng.SuiteRunner.run(SuiteRunner.java:289)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1301)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1226)
at org.testng.TestNG.runSuites(TestNG.java:1144)
at org.testng.TestNG.run(TestNG.java:1115)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)
`
Steps to reproduce
create a test db and use right credentials here.
https://github.com/careerscale/orientdb-demo/blob/master/orientdb-java-sample/src/test/java/com/orientdb/samples/test/RidBagErrorTest.java
The text was updated successfully, but these errors were encountered: