Setup 2 nodes. They see each other.
Replication is On.
Members [2] {
>>
>> Member [192.168.2.73]:2434
>>
>> Member [192.168.2.40]:2434 this
>>
>> }
>>
>> [ClusterService]
>>
>> 2014-02-06 21:03:50:145 INFO [192.168.2.40]:2434 [orientdb]
>>> Address[192.168.2.40]:2434 is STARTED [LifecycleService]
>>
>> 2014-02-06 21:03:50:417 WARN [vmware1_7] opening database 'test'...
>>> [OHazelcastPlugin]
>>
>> 2014-02-06 21:03:50:419 INFO [vmware1_7] loaded database configuration
>>> from active cluster [OHazelcastPlugin]
>>
>> 2014-02-06 21:03:50:457 INFO updated distributed configuration for
>>> database: test:
>>
>> ----------
>>
>> {
>>
>> "version":2,
>>
>> "replication":true,
>>
>> "autoDeploy":true,
>>
>> "hotAlignment":true,
>>
>> "resyncEvery":15,"clusters":{
>>
>> "internal":{
>>
>> "replication":false
>>
>> },
>>
>> "index":{
>>
>> "replication":false
>>
>> },
>>
>> "*":{
>>
>> "replication":true,
>>
>> "readQuorum":1,
>>
>> "writeQuorum":2,
>>
>> "failureAvailableNodesLessQuorum":false,
>>
>> "readYourWrites":true,"partitioning":{
>>
>> "strategy":"round-robin",
>>
>> "default":0,
>>
>> "partitions":[["<NEW_NODE>","lenovo1_7","vmware1_7"]]
>>
>> }
>>
>> }
>>
>> }
>>
>> }
>>
>> ---------- [OHazelcastPlugin]
>>
>>
>>
There 2 issues I have:
1. I'm using console.sh to create vertices on let's say nodeA
*create vertex V set node = 33*
then, I check if the number of vertices is increased
*select count(*) from V*
so, it did increase on nodeA, but not on nodeB.
If I create a vertex on nodeB, the number of vertices will increase on both
nodes.
2. I connect to nodeA using java API. Trying to add a vertex
protected OrientVertex createVertex(final OrientBaseGraph db) {
OrientVertex vertex = db.addVertex(null);
for (int i = 0; i < numberOfProperties; i++) {
vertex.setProperty("property" + i, "value" + i);
}
vertex.save();
return vertex;
}
OrientBaseGraph db is actually OrientGraphNoTx. Application stops on line
OrientVertex
vertex = db.addVertex(null);
forever...
I made a screen shot of Server Management page at this point
<https://lh6.googleusercontent.com/-X3ECBL4ClOU/UvP8Kgz06GI/AAAAAAAAMuY/0X0FMZ98Wa4/s1600/server_managment.png>
Connection #20 and 21, I guess, are trying to add a vertex. (I have no idea
why there are 2 of them...)
If I connect to nodeB and try to add a vertex, I got an exception
com.orientechnologies.orient.enterprise.channel.binary.OResponseProcessingException:
Exception during response processing.
at
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.throwSerializedException(OChannelBinaryAsynchClient.java:264)
at
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.handleStatus(OChannelBinaryAsynchClient.java:231)
at
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:202)
at
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:113)
at
com.orientechnologies.orient.client.remote.OStorageRemote.beginResponse(OStorageRemote.java:1949)
at
com.orientechnologies.orient.client.remote.OStorageRemote.createRecord(OStorageRemote.java:364)
at
com.orientechnologies.orient.client.remote.OStorageRemoteThread.createRecord(OStorageRemoteThread.java:235)
at
com.orientechnologies.orient.core.db.raw.ODatabaseRaw.save(ODatabaseRaw.java:258)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.executeSaveRecord(ODatabaseRecordAbstract.java:881)
at
com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(OTransactionNoTx.java:78)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:274)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:39)
at
com.orientechnologies.orient.core.record.ORecordAbstract.save(ORecordAbstract.java:329)
at
com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1358)
at
com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1347)
at
com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1336)
at
com.tinkerpop.blueprints.impls.orient.OrientElement.save(OrientElement.java:149)
at
com.tinkerpop.blueprints.impls.orient.OrientElement.save(OrientElement.java:132)
at
com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.addVertex(OrientBaseGraph.java:369)
at
com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.addVertex(OrientBaseGraph.java:332)
at
com.ibm.test.orientdb.OrientdbInsertPerformanceTest.createVertex(OrientdbInsertPerformanceTest.java:22)
at
com.ibm.test.orientdb.OrientdbInsertPerformanceTest.doAddDocuments(OrientdbInsertPerformanceTest.java:90)
at
com.ibm.test.BaseGraphInsertPerformanceTest$1.call(BaseGraphInsertPerformanceTest.java:148)
at
com.ibm.test.BaseGraphInsertPerformanceTest$1.call(BaseGraphInsertPerformanceTest.java:145)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by:
com.orientechnologies.orient.server.distributed.ODistributedException:
Quorum 2 not reached for request=id=286 task=record_create(#9:-1 v.0).
Servers in conflicts are:
- vmware1_7: rid(?:3) data(0:0) record(type:0 size:0 v:1)
at
com.orientechnologies.orient.server.distributed.ODistributedResponseManager.getResponse(ODistributedResponseManager.java:422)
at
com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.collectResponses(OHazelcastDistributedDatabase.java:260)
at
com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.send2Nodes(OHazelcastDistributedDatabase.java:164)
at
com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.send(OHazelcastDistributedDatabase.java:182)
at
com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.sendRequest(OHazelcastPlugin.java:325)
at
com.orientechnologies.orient.server.distributed.ODistributedStorage.createRecord(ODistributedStorage.java:165)
at
com.orientechnologies.orient.core.db.raw.ODatabaseRaw.save(ODatabaseRaw.java:258)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.executeSaveRecord(ODatabaseRecordAbstract.java:881)
at
com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(OTransactionNoTx.java:78)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:274)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:249)
at
com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(ODatabaseRecordTx.java:39)
at
com.orientechnologies.orient.core.db.ODatabaseRecordWrapperAbstract.save(ODatabaseRecordWrapperAbstract.java:282)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:292)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:233)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:51)
at
com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.createRecord(OBinaryNetworkProtocolAbstract.java:332)
at
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.createRecord(ONetworkProtocolBinary.java:1481)
at
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:299)
at
com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:125)
at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:45)
Any ideas what's going on there?
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.