Orientdb事务-无法锁定记录
尝试使用orientdb和orientjs完成事务时收到错误。以下是错误:Orientdb事务-无法锁定记录,orientdb,orientjs,Orientdb,Orientjs,尝试使用orientdb和orientjs完成事务时收到错误。以下是错误: 2015-10-21 15:48:33:868 FINE [node1442848110394] Distributed transaction: locked record #12:19 in database 'MyDb' owned by server 'node1442848110394' [OHazelcastDistributedDatabase] 2015-10-21 15:48:33:868 FINE
2015-10-21 15:48:33:868 FINE [node1442848110394] Distributed transaction: locked record #12:19 in database 'MyDb' owned by server 'node1442848110394' [OHazelcastDistributedDatabase]
2015-10-21 15:48:33:868 FINE [node1442848110394] Distributed transaction: cannot lock record #12:19 in database 'MyDb' owned by server 'node1442848110394' [OHazelcastDistributedDatabase]
2015-10-21 15:48:33:868 FINE [node1442848110394] Distributed transaction: unlocked record #12:19 in database 'MyDb' [OHazelcastDistributedDatabase]
2015-10-21 15:48:33:869 FINE [node1442848110394] sending back response 'com.orientechnologies.orient.server.distributed.task.ODistributedRecordLockedException' to request 28 (tx) [ODistributedWorker]Error on transaction commit
com.orientechnologies.orient.server.distributed.task.ODistributedRecordLockedException
at com.orientechnologies.orient.server.distributed.task.OTxTask.execute(OTxTask.java:104)
at com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.executeOnLocalNode(OHazelcastPlugin.java:797)
at com.orientechnologies.orient.server.hazelcast.ODistributedWorker.onMessage(ODistributedWorker.java:296)
at com.orientechnologies.orient.server.hazelcast.ODistributedWorker.run(ODistributedWorker.java:119)
这是我的节点代码:
var document = {.....} //some object
db.let('document',function(s) {
s.insert().into(self.tableName).set(document);
})
.let('userToDocumentEdge',function(s) {
s
.create('edge', 'E')
.from("#12:19")
.to('$document');
})
.commit()
.return('$document')
.one();
我已经能够完成其他交易,而不是与上述代码和12:19存在
我们正在单个linux实例上运行./dserver
有什么想法吗?Josh哪个版本的OrientDB?OrientDB服务器v2.1.2版本UNKNOWN@r; 2015-09-09 21:41:27+000该问题与首次插入失败有关,其中一个属性是数组。orient日志没有适当地列出该错误,只是说第2条语句中的记录无法锁定。orientjs也返回了一条非信息错误消息。