问题描述
我试图在OrientDB版本(3.1.2)中插入N个边和N个顶点,成功插入了顶点,但边没有插入,即使相同的函数在插入顶点的情况,下面是我的功能:
protected static boolean commitGraph(OrientGraph g) {
for (int i = 0; i < 2; i++) {
try {
g.commit();
return true;
} catch (Exception e) {
System.out.println(e);
}
}
return false;
}
我得到了这个例外:
INFO: Windows OS is detected,262144 limit of open files will be set for the disk cache.
Sep 14,2020 10:06:56 AM com.orientechnologies.common.log.OLogManager log
SEVERE: Error on transaction commit `2E3CD732`
com.orientechnologies.orient.core.exception.OStorageException: Exception during execution of component operation inside of storage healthEmptyDB
DB name="healthEmptyDB"
DB name="healthEmptyDB"
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.handleException(OChannelBinaryAsynchClient.java:357)
at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.handleStatus(OChannelBinaryAsynchClient.java:305)
at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.handleStatus(OChannelBinaryAsynchClient.java:327)
at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:211)
at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:169)
at com.orientechnologies.orient.client.remote.OStorageRemote.beginResponse(OStorageRemote.java:2221)
at com.orientechnologies.orient.client.remote.OStorageRemote.lambda$networkOperationRetryTimeout$2(OStorageRemote.java:385)
at com.orientechnologies.orient.client.remote.OStorageRemote.baseNetworkOperation(OStorageRemote.java:447)
at com.orientechnologies.orient.client.remote.OStorageRemote.networkOperationRetryTimeout(OStorageRemote.java:365)
at com.orientechnologies.orient.client.remote.OStorageRemote.networkOperationnoretry(OStorageRemote.java:400)
at com.orientechnologies.orient.client.remote.OStorageRemote.commit(OStorageRemote.java:1304)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract.internalCommit(ODatabaseDocumentAbstract.java:2466)
at com.orientechnologies.orient.core.tx.OTransactionoptimistic.doCommit(OTransactionoptimistic.java:602)
at com.orientechnologies.orient.core.tx.OTransactionoptimistic.commit(OTransactionoptimistic.java:106)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract.commit(ODatabaseDocumentAbstract.java:1984)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract.commit(ODatabaseDocumentAbstract.java:1954)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:741)
at com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.commit(OrientTransactionalGraph.java:183)
at graph.orient.utils.InsertNEdges.commitGraph(InsertNEdges.java:73)
at graph.orient.utils.InsertNEdges.main(InsertNEdges.java:66)
Suppressed: com.orientechnologies.orient.core.exception.OStorageException: Exception during execution of component operation inside of storage healthEmptyDB
DB name="healthEmptyDB"
at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicoperationsManager.executeInsideComponentOperation(OAtomicoperationsManager.java:218)
at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicoperationsManager.executeInsideComponentOperation(OAtomicoperationsManager.java:205)
at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurableComponent.executeInsideComponentOperation(ODurableComponent.java:102)
at com.orientechnologies.orient.core.storage.index.sbtreebonsai.local.OSBTreeBonsaiLocal.create(OSBTreeBonsaiLocal.java:109)
at com.orientechnologies.orient.core.storage.ridbag.sbtree.OSBTreeCollectionManagerShared.createEdgeTree(OSBTreeCollectionManagerShared.java:139)
at com.orientechnologies.orient.core.storage.ridbag.sbtree.OSBTreeCollectionManagerShared.createEdgeTree(OSBTreeCollectionManagerShared.java:47)
at com.orientechnologies.orient.core.storage.ridbag.sbtree.OSBTreeCollectionManagerAbstract.createSBTree(OSBTreeCollectionManagerAbstract.java:175)
at com.orientechnologies.orient.core.storage.ridbag.sbtree.OSBTreeCollectionManagerShared.createSBTree(OSBTreeCollectionManagerShared.java:197)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.HelperClasses.writeSBTreeRidbag(HelperClasses.java:411)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.HelperClasses.writeRidBag(HelperClasses.java:356)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinaryV1.writeRidBag(ORecordSerializerBinaryV1.java:731)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinaryV1.serializeValue(ORecordSerializerBinaryV1.java:1020)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinaryV1.serializeValues(ORecordSerializerBinaryV1.java:404)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinaryV1.serializeDocument(ORecordSerializerBinaryV1.java:462)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinaryV1.serialize(ORecordSerializerBinaryV1.java:483)
at com.orientechnologies.orient.core.serialization.serializer.record.binary.ORecordSerializerBinary.toStream(ORecordSerializerBinary.java:132)
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commitEntry(OAbstractPaginatedStorage.java:6012)
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commit(OAbstractPaginatedStorage.java:2427)
at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.commit(OAbstractPaginatedStorage.java:2241)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract.internalCommit(ODatabaseDocumentAbstract.java:2466)
at com.orientechnologies.orient.core.tx.OTransactionoptimistic.doCommit(OTransactionoptimistic.java:602)
at com.orientechnologies.orient.core.tx.OTransactionoptimistic.commit(OTransactionoptimistic.java:106)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract.commit(ODatabaseDocumentAbstract.java:1984)
at com.orientechnologies.orient.core.db.document.ODatabaseDocumentAbstract.commit(ODatabaseDocumentAbstract.java:1954)
at com.orientechnologies.orient.server.OConnectionBinaryExecutor.executeCommit38(OConnectionBinaryExecutor.java:1698)
at com.orientechnologies.orient.client.remote.message.OCommit38Request.execute(OCommit38Request.java:139)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.sessionRequest(ONetworkProtocolBinary.java:354)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:238)
at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:67)
Caused by: com.orientechnologies.orient.core.exception.OStorageException: Ridbag component with name collections_22.sbc does not exist
DB name="healthEmptyDB"
at com.orientechnologies.orient.core.storage.index.sbtreebonsai.local.OSBTreeBonsaiLocal.lambda$create$1(OSBTreeBonsaiLocal.java:121)
at com.orientechnologies.orient.core.storage.impl.local.paginated.atomicoperations.OAtomicoperationsManager.executeInsideComponentOperation(OAtomicoperationsManager.java:213)
... 28 more
[CIRculaR REFERENCE:com.orientechnologies.orient.core.exception.OStorageException: Ridbag component with name collections_22.sbc does not exist
DB name="healthEmptyDB"]
com.orientechnologies.orient.core.exception.OStorageException: Exception during execution of component operation inside of storage healthEmptyDB
任何帮助!! 谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)