简体   繁体   中英

Orientdb network connection lost during commit

I am using the blueprints graph api for orient against a 2 node cluster running orient 1.7.10 . When ingesting simple parent child data I intermittently get the following error on commit -

Warning: caught I/O errors from not connected (local socket=?), trying to reconnect (error: java.io.IOException: Channel is closed)

The connection is then reestablished:

Connection re-acquired transparently after 31ms and 1 retries: no errors will be thrown at application level.

This occurs mid way through the commit (100 vertices and edges) with the result that the server thinks it has sent the response but the client hangs forever.

Is there a way to catch this at the application level and eg rollback?

I would be very grateful for any help?

As far as i know a very similar issue was fixed some time ago: https://github.com/orientechnologies/orientdb/issues/2930

one thing to be aware is that autostart transaction of the graph, if is enabled (and it is by default) you don't need to do begin, but just commit, if you do begin the transaction will be committed at shutdown and in that case can create that problem.

another suggestion is migrate to 2.0-* releases that have important improvement also in that side, especially if you are in development phase, the 2.0 final is going to be released very soon and will be the one with major focus in the next months.

bye

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM