Hi Colin,
I got the same problem in snapshot 2.1
orientdb {db=shDB}> insert into cluster:testclass_p2_l2 (name) values
("Ali-L2")
Sent run-time exception to the client /127.0.0.1:40351:
com.orientechnologies.common.exception.OException: Cannot find best cluster
for class 'shClass' on server 'L2'. ClusterStrategy=local
com.orientechnologies.common.exception.OException: Cannot find best cluster
for class 'shClass' on server 'L2'. ClusterStrategy=local
at
com.orientechnologies.orient.server.distributed.OLocalClusterStrategy.readConfiguration(OLocalClusterStrategy.java:89)
at
com.orientechnologies.orient.server.distributed.OLocalClusterStrategy.getCluster(OLocalClusterStrategy.java:60)
at
com.orientechnologies.orient.server.distributed.ODistributedStorage.createRecord(ODistributedStorage.java:468)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.executeSaveRecord(ODatabaseDocumentTx.java:1727)
at
com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(OTransactionNoTx.java:94)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:2298)
at
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.save(ODatabaseDocumentTx.java:95)
at
com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1681)
at
com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1677)
at
com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:99)
at
com.orientechnologies.orient.core.sql.OCommandExecutorSQLInsert.saveRecord(OCommandExecutorSQLInsert.java:312)
at
com.orientechnologies.orient.core.sql.OCommandExecutorSQLInsert.execute(OCommandExecutorSQLInsert.java:215)
at
com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:83)
at
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.executeCommand(OAbstractPaginatedStorage.java:1202)
at
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1183)
at
com.orientechnologies.orient.server.distributed.ODistributedStorage.command(ODistributedStorage.java:253)
at
com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:63)
at
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1172)
at
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:372)
at
com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:221)
at
com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:71)
Error: com.orientechnologies.common.exception.OException: Cannot find best
cluster for class 'shClass' on server 'L2'. ClusterStrategy=local
Regards,
Ali
On Friday, May 8, 2015 at 11:57:09 AM UTC-4, Colin wrote:
>
> Hi Shahram.
>
> Could you log into the console on each machine and execute the classes
> command and then display the results here?
>
> Thanks!
>
> -Colin
>
> Orient Technologies
>
> The Company behind OrientDB
>
>
> On Friday, May 8, 2015 at 10:07:07 AM UTC-5, Shahram wrote:
>>
>> Hi guys,
>>
>> I have configured an OrientDB (v 2.0.8) cluster with two nodes (N! & N2).
>> I connect to OrientDB servers in both nodes through OrienDB command console
>> (./dserver.sh)
>> 1- in N1, I created a database named DBtest.Then in N2 I see this
>> database which is perfect.
>> 2- I created a class named "client" in N1.
>> Problem: in N1, i want to insert a record to class "Client". However it
>> says it cannot find the best cluster for inserting this record.
>>
>> Could you please let me know how can I come up with this.
>>
>> Kind regards,
>> Shahram
>>
>
--
---
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/d/optout.