简体   繁体   English

提交期间Orientdb网络连接丢失

[英]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 . 我正在针对运行Orient 1.7.10的2节点集群使用1.7.10的蓝图图api。 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) 警告:由于未连接而捕获了I / O错误(本地套接字=?),试图重新连接(错误:java.io.IOException:通道已关闭)

The connection is then reestablished: 然后重新建立连接:

Connection re-acquired transparently after 31ms and 1 retries: no errors will be thrown at application level. 在31ms和1次重试后透明地重新获得连接:在应用程序级别不会引发任何错误。

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. 这种情况发生在提交过程的中途(100个顶点和边),结果服务器认为它已发送了响应,但客户端永远挂起。

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 据我所知,前一段时间已修复了一个非常类似的问题: 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. 另一个建议是迁移到在这方面也有重要改进的2.0- *版本,尤其是如果您处于开发阶段,那么2.0 final将很快发布,并将在接下来的几个月中成为重点。

bye 再见

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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