Cannot read transaction record from the network. Transaction aborted

Hi

  • maven
        <dependency>
            <groupId>com.orientechnologies</groupId>
            <artifactId>orientdb-jdbc</artifactId>
            <version>3.0.29</version>
        </dependency>

I have two server nodes,both of them are master. I write in one, read in another . but i met an exception called com.orientechnologies.orient.core.exception.OSerializationException: Cannot read transaction record from the network. Transaction aborted when inserting edges in db ,like this:

sql:

begin; 
	foreach ($val in ["a","b","c","d","e","f"]) 
	{
	let start = select from v_c7e1a3d5bdfe4d30bdec8af08b1437e1 where p_suozaidi_86 = $val and @rid in [#90:0, #90:1, #90:2, #90:3, #90:4, #91:0, #91:1, #91:2, #91:3];
	create edge e_2a0c3dd565d54450b467387207b7ce35 from $start To (select from v_7151787753af403ab54cc0e455c796ce where  ( p_mingcheng_421 = $val  ) ) CONTENT {"date":1592557844120,"isSelfRelation":0,"name":"位于","relationId":8999,"id":8999,"label":"e_2a0c3dd565d54450b467387207b7ce35","instanceLabel":"e_2a0c3dd565d54450b467387207b7ce35","type":"general","direction":0}; 
	} 
	commit

session.execute("sql",sql);

then ,i met the exception:

com.orientechnologies.orient.core.exception.OSerializationException: Cannot read transaction record from the network. Transaction aborted
	DB name="orientdb"
	DB name="orientdb"
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.handleException(OChannelBinaryAsynchClient.java:338)
	at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.handleStatus(OChannelBinaryAsynchClient.java:285)
	at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.handleStatus(OChannelBinaryAsynchClient.java:307)
	at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:196)
	at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:158)
	at com.orientechnologies.orient.client.remote.OStorageRemote.beginResponse(OStorageRemote.java:1888)
	at com.orientechnologies.orient.client.remote.OStorageRemote.lambda$networkOperationRetryTimeout$2(OStorageRemote.java:245)
	at com.orientechnologies.orient.client.remote.OStorageRemote.baseNetworkOperation(OStorageRemote.java:304)
	at com.orientechnologies.orient.client.remote.OStorageRemote.networkOperationRetryTimeout(OStorageRemote.java:228)
	at com.orientechnologies.orient.client.remote.OStorageRemote.networkOperationNoRetry(OStorageRemote.java:258)
	at com.orientechnologies.orient.client.remote.OStorageRemote.execute(OStorageRemote.java:978)
	at com.orientechnologies.orient.core.db.document.ODatabaseDocumentRemote.execute(ODatabaseDocumentRemote.java:432)
	at cn.com.bmsmart.service.graphdb.impl.KgOrientDBServiceImpl.buildRelationNew(KgOrientDBServiceImpl.java:2340)
	at cn.com.bmsmart.service.graphdb.impl.KgOrientDBServiceImpl.insertInstanceRelations(KgOrientDBServiceImpl.java:2185)
	at cn.com.bmsmart.service.graphdb.impl.KgOrientDBServiceImpl$$FastClassBySpringCGLIB$$c6450343.invoke(<generated>)
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:750)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
	at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
	at cn.com.bmsmart.service.graphdb.impl.KgOrientDBServiceImpl$$EnhancerBySpringCGLIB$$bcc57a1f.insertInstanceRelations(<generated>)
	at cn.com.bmsmart.quartz.task.KgGraphBuilderTask.execute(KgGraphBuilderTask.java:173)
	at cn.com.bmsmart.manager.SdcTask.run(SdcTask.java:41)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
	Suppressed: com.orientechnologies.orient.core.exception.OSerializationException: Cannot read transaction record from the network. Transaction aborted
	DB name="orientdb"
		at com.orientechnologies.orient.server.tx.OTransactionOptimisticServer.begin(OTransactionOptimisticServer.java:208)
		at com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract.begin(ODatabaseDocumentAbstract.java:1516)
		at com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract.begin(ODatabaseDocumentAbstract.java:1507)
		at com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract.begin(ODatabaseDocumentAbstract.java:86)
		at com.orientechnologies.orient.core.sql.parser.OBeginStatement.executeSimple(OBeginStatement.java:25)
		at com.orientechnologies.orient.core.sql.executor.OSingleOpExecutionPlan.executeInternal(OSingleOpExecutionPlan.java:99)
		at com.orientechnologies.orient.core.sql.executor.ScriptLineStep.syncPull(ScriptLineStep.java:37)
		at com.orientechnologies.orient.core.sql.executor.OScriptExecutionPlan.executeUntilReturn(OScriptExecutionPlan.java:188)
		at com.orientechnologies.orient.core.sql.executor.OScriptExecutionPlan.doExecute(OScriptExecutionPlan.java:86)
		at com.orientechnologies.orient.core.sql.executor.OScriptExecutionPlan.fetchNext(OScriptExecutionPlan.java:50)
		at com.orientechnologies.orient.core.sql.parser.OLocalResultSet.fetchNext(OLocalResultSet.java:39)
		at com.orientechnologies.orient.core.sql.parser.OLocalResultSet.<init>(OLocalResultSet.java:30)
		at com.orientechnologies.orient.core.command.OSqlScriptExecutor.executeInternal(OSqlScriptExecutor.java:114)
		at com.orientechnologies.orient.core.command.OSqlScriptExecutor.execute(OSqlScriptExecutor.java:45)
		at com.orientechnologies.orient.core.db.document.ODatabaseDocumentEmbedded.execute(ODatabaseDocumentEmbedded.java:618)
		at com.orientechnologies.orient.server.OConnectionBinaryExecutor.executeQuery(OConnectionBinaryExecutor.java:1194)
		at com.orientechnologies.orient.client.remote.message.OQueryRequest.execute(OQueryRequest.java:136)
		at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.sessionRequest(ONetworkProtocolBinary.java:310)
		at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:212)
		at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:69)
	Caused by: java.lang.NullPointerException
		at com.orientechnologies.orient.server.tx.OTransactionOptimisticServer.begin(OTransactionOptimisticServer.java:74)
		... 19 more
	[CIRCULAR REFERENCE:java.lang.NullPointerException]

I got something that the issue numbered #7510 is closed in github. Now i met it again.

somebody help !

Thanks

52HZ