Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in using insert/update operations on distributed orientdb server. #1509

Closed
prashant23 opened this issue Jun 6, 2013 · 5 comments
Closed
Assignees
Milestone

Comments

@prashant23
Copy link

i have connected to the remote location database then i can see all the classes in that database. i can create the classes and vertices but when am trying to insert the data in the cluster then it is giving following error

Error on executing remote operation in SYNCHRONOUS mode against node:x.x.x.x:2434

can anybody suggest where am going wrong ??

@lvca
Copy link
Member

lvca commented Jun 6, 2013

Ho can we replicate it? Can you post the detailed exception?

@prashant23
Copy link
Author

this is what am trying

orientdb> create class people extends E;

Class created successfully. Total classes in database now: 101

orientdb> cluster status;
Cluster status:
{"name":"_hzInstance_1_orientdb","local":"192.168.51.102:2434","members":[{"alias":"192.168.51.102:2434","id":"192.168.51.102:2434","status":"online","listeners":[{"protocol":"ONetworkProtocolBinary","listen":"192.168.51.102:2424"},{"protocol":"ONetworkProtocolHttpDb","listen":"192.168.51.102:2480"}]},{"alias":"192.168.51.101:2434","id":"192.168.51.101:2434","status":"online","listeners":[{"protocol":"ONetworkProtocolBinary","listen":"192.168.51.101:2424"},{"protocol":"ONetworkProtocolHttpDb","listen":"192.168.51.101:2480"}]}]}

orientdb> create property people.name String;

Property created successfully with id=1

orientdb> create property people.address String;

Property created successfully with id=2

orientdb> create property people.age integer;

Property created successfully with id=3

orientdb> insert into people('name','address','age') values ('prashant','bangalore',23);

Error: com.orientechnologies.orient.server.distributed.ODistributedException: Error on executing remote operation in SYNCHRONOUS mode against node: Member [192.168.51.101]:2434
Error: com.orientechnologies.common.exception.OException: java.util.concurrent.ExecutionException: com.orientechnologies.orient.core.exception.ODatabaseException: Error on saving record in cluster #104
Error: java.util.concurrent.ExecutionException: com.orientechnologies.orient.core.exception.ODatabaseException: Error on saving record in cluster #104
Error: com.orientechnologies.orient.core.exception.ODatabaseException: Error on saving record in cluster #104
Error: java.lang.IllegalArgumentException: Cluster segment #104 does not exist in database 'demo'

now this is error am getting can you tell me whats the solution for that

@prashant23
Copy link
Author

you dint got the problem ???

@lvca
Copy link
Member

lvca commented Jun 6, 2013

This is a known issue related to the schema. It will be fixed in 1.5, for now create the schema before to set database in cluster.

@ghost ghost assigned lvca Jun 6, 2013
lvca added a commit that referenced this issue Jun 6, 2013
@lvca lvca closed this as completed Jun 6, 2013
@prashant23
Copy link
Author

can you suggest any example for that am not understanding what you are saying ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants