Error shutting down clustered nodes (Customer=38)
Luca, I am seeing issues when running our test app where I get the following exception when shutting down nodes.
Steps: execute 0 5000 execute 1 5000 execute 2 5000 shutdown 2
I can't say it happens every time, but it is happening at least 3 out of 4 times. I can provide logs if you would like.
2014-05-12 17:41:52:332 SEVE ******************************** [OrientDBCluster]Error on distributed transaction commit Cannot index record #9:13834: found duplicated key 'plocal:D:/Dev-SVN/HEAD/development/tools/orientdb-cluster-test/servers/0/databases/platform.0f37b3e20-55bd-4758-9466-8ab1bb66b3ac' in index 'id_pk' previously assigned to the record #9:13741 -> com.orientechnologies.orient.core.index.OIndexUnique.commitSnapshot(OIndexUnique.java:135) -> com.orientechnologies.orient.core.index.OIndexAbstract.commit(OIndexAbstract.java:693) -> com.orientechnologies.orient.core.tx.OTransactionOptimistic$CommitIndexesCallback.run(OTransactionOptimistic.java:261) -> com.orientechnologies.orient.core.tx.OTransactionOptimistic$1.call(OTransactionOptimistic.java:138) -> com.orientechnologies.orient.core.storage.OStorageAbstract.callInLock(OStorageAbstract.java:189) -> com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.callInLock(OLocalPaginatedStorage.java:938) -> com.orientechnologies.orient.server.distributed.ODistributedStorage.callInLock(ODistributedStorage.java:776) -> com.orientechnologies.orient.core.tx.OTransactionOptimistic.doCommit(OTransactionOptimistic.java:134) -> com.orientechnologies.orient.core.tx.OTransactionOptimistic.commit(OTransactionOptimistic.java:105) -> com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.commit(ODatabaseRecordTx.java:142) -> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:501) -> com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.commit(ODatabaseDocumentTx.java:493) -> com.orientechnologies.orient.server.distributed.task.OTxTask.execute(OTxTask.java:70) -> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.executeOnLocalNode(OHazelcastPlugin.java:642) -> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.onMessage(OHazelcastDistributedDatabase.java:468) -> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase$1.run(OHazelcastDistributedDatabase.java:231) -> java.lang.Thread.run(Thread.java:722)Error on distributed transaction commit
Found the problem and fixed. Waiting test cases to pass...
Still having issues shutting down nodes.
Steps: Execute 0 5000 Execute 1 5000 Execute 2 5000 Execute 3 5000 Shutdown 3
Have attached the log files.
I ran the same scenario earlier and there were no errors shutting down 3, but when I shut down 2, I got the same error.
From: Luca Garulli [mailto:[email protected]] Sent: Tuesday, May 13, 2014 4:10 AM To: orientechnologies/orientdb Cc: Robbin L. Gratz Subject: Re: [orientdb] Error shutting down clustered nodes (Customer=38) (#2331)
Closed #2331https://github.com/orientechnologies/orientdb/issues/2331.
— Reply to this email directly or view it on GitHubhttps://github.com/orientechnologies/orientdb/issues/2331#event-120474897.
@robgratz Please could you check with last snapshot?