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

Distributed 1.7 : create edge with property fails with NPE #2292

Closed
abbael opened this issue Apr 29, 2014 · 9 comments
Closed

Distributed 1.7 : create edge with property fails with NPE #2292

abbael opened this issue Apr 29, 2014 · 9 comments
Assignees
Milestone

Comments

@abbael
Copy link

abbael commented Apr 29, 2014

create 2 vertices, then create edge with set property option:

Eg;
create class city extends V
create class distance extends E
create vertex city set name='milan' (#21:0)
create vertex city set name='new york' (#21:1)
create edge distance from #21:0 to #21:1 set miles='3922'

Error to console:
com.orientechnologies.orient.server.distributed.ODistributedException: Quorum 2 not reached for request=id=1386118 from=server1 task=command_sql(create edge distance from #21:0 to #21:1 set miles='3922'). Servers in timeout/conflict are: no server in conflict. Received: {server2=waiting-for-response, server1=waiting-for-response}

Errors from server log:

java.lang.NullPointerException
-> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.onMessage(OHazelcastDistributedDatabase.java:476)
-> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase$1.run(OHazelcastDistributedDatabase.java:248)
-> java.lang.Thread.run(Thread.java:680)

@lvca
Copy link
Member

lvca commented Apr 29, 2014

What release are you using? 1.7-SNAPSHOT?

@abbael
Copy link
Author

abbael commented Apr 29, 2014

yes. to be precise, 1.7-20140423.005209

@lvca
Copy link
Member

lvca commented Apr 30, 2014

Please may you try with last 1.7-SNAPSHOT? We changed distributed cfg (http://www.orientechnologies.com/distributed-architecture-sharding/) so please update it.

@abbael
Copy link
Author

abbael commented May 1, 2014

Same result with latest SNAPSHOT (20140430.233656-172)
orientdb {GratefulDeadConcerts}> create vertex V
Created vertex '#9:809 v1' in 0.042000 sec(s).

orientdb {GratefulDeadConcerts}> create vertex V
Created vertex '#9:810 v1' in 0.018000 sec(s).

orientdb {GratefulDeadConcerts}> create edge E from #9:809 to #9:810 set p=0

Error: com.orientechnologies.orient.server.distributed.ODistributedException: Quorum 2 not reached for request=id=3 from=dev1 task=command_sql(create edge E from #9:809 to #9:810 set p=0). Servers in timeout/conflict are: no server in conflictReceived: {dev1=waiting-for-response, dev02=waiting-for-response}

orientdb {GratefulDeadConcerts}> create edge E from #9:809 to #9:810

Created edge '[E{in:#9:810,out:#9:809}]' in 0.020000 sec(s).

.....

Server error message:

2014-05-01 11:35:22:227 INFO OrientDB Server v1.7-SNAPSHOT is active. [OServer][dev1] error on reading distributed request: command_sql(create edge E from #9:809 to #9:810 set p=0)
Cannot dispatch response to the thread queue dev1
-> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.onMessage(OHazelcastDistributedDatabase.java:491)
-> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase$1.run(OHazelcastDistributedDatabase.java:231)
-> java.lang.Thread.run(Thread.java:680)
java.lang.NullPointerException
-> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.onMessage(OHazelcastDistributedDatabase.java:491)
-> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase$1.run(OHazelcastDistributedDatabase.java:231)
-> java.lang.Thread.run(Thread.java:680)
null
-> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.onMessage(OHazelcastDistributedDatabase.java:491)
-> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase$1.run(OHazelcastDistributedDatabase.java:231)
-> java.lang.Thread.run(Thread.java:680)
2014-05-01 11:37:11:977 WARN [dev1] timeout (10000ms) on waiting for synchronous responses from nodes=[dev1, dev02] responsesSoFar=[] request=id=3 from=dev1 task=command_sql(create edge E from #9:809 to #9:810 set p=0) [OHazelcastDistributedDatabase]
2014-05-01 11:37:11:979 WARN [dev1] detected 2 node(s) in timeout or in conflict and quorum (2) has not been reached, rolling back changes for request: id=3 from=dev1 task=command_sql(create edge E from #9:809 to #9:810 set p=0) [ODistributedResponseManager]Cannot route COMMAND operation to the distributed node
Error on sending distributed request against database 'GratefulDeadConcerts.[]' to nodes [dev1, dev02]
-> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.send2Nodes(OHazelcastDistributedDatabase.java:187)
-> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.sendRequest(OHazelcastPlugin.java:359)
-> com.orientechnologies.orient.server.distributed.ODistributedStorage.command(ODistributedStorage.java:182)
-> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:59)
-> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1099)
-> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:349)
-> com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:126)
-> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:45)
Quorum 2 not reached for request=id=3 from=dev1 task=command_sql(create edge E from #9:809 to #9:810 set p=0). Servers in timeout/conflict are: no server in conflictReceived: {dev1=waiting-for-response, dev02=waiting-for-response}
-> com.orientechnologies.orient.server.hazelcast.OHazelcastDistributedDatabase.send2Nodes(OHazelcastDistributedDatabase.java:187)
-> com.orientechnologies.orient.server.hazelcast.OHazelcastPlugin.sendRequest(OHazelcastPlugin.java:359)
-> com.orientechnologies.orient.server.distributed.ODistributedStorage.command(ODistributedStorage.java:182)
-> com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:59)
-> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1099)
-> com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:349)
-> com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:126)
-> com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:45)

@abbael
Copy link
Author

abbael commented Jun 20, 2014

still error on 1.7.3. create edge with property is necessary because if you use the blueprint addEdge() API the number of edges are somehow limited to 80 only

@lvca
Copy link
Member

lvca commented Jun 24, 2014

Please can you try with 1.7.4? We fixed an issue not related to the Distributed part, but on the edge limit of 80.

@tanji
Copy link

tanji commented Jul 21, 2014

Same error in 1.7.7

@tanji
Copy link

tanji commented Jul 21, 2014

Also related to #2389

@lvca
Copy link
Member

lvca commented Jul 23, 2014

Can you try with las 1.7.7-SNAPSHOT?

@lvca lvca closed this as completed Jul 23, 2014
@lvca lvca added this to the 1.7.7 milestone Jul 23, 2014
@lvca lvca self-assigned this Jul 23, 2014
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

3 participants