Star

GraphClient socketTimeout 是否调整client timeout 和graph service session_reclaim_interval_secs配置

请问GraphClient query 报socketTimeout,除client timeout 调大外,graph service是否需要调大 session_reclaim_interval_secs 配置?

Failed: java.net.SocketTimeoutException: Read timed out
com.facebook.thrift.transport.TTransportException: java.net.SocketTimeoutException: Read timed out
  at com.facebook.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
  at com.facebook.thrift.transport.TTransport.readAll(TTransport.java:84)
  at com.facebook.thrift.protocol.TCompactProtocol.readByte(TCompactProtocol.java:609)
  at com.facebook.thrift.protocol.TCompactProtocol.readMessageBegin(TCompactProtocol.java:473)
  at com.vesoft.nebula.graph.GraphService$Client.recv_execute(GraphService.java:177)
  at com.vesoft.nebula.graph.GraphService$Client.execute(GraphService.java:153)
  at com.vesoft.nebula.client.graph.GraphClientImpl.executeQuery(GraphClientImpl.java:124)
  at GraphTest.executeQueryFriendDoubleSide(GraphTest.java:253)
  at GraphTest.query(GraphTest.java:75)
  at GraphTest.main(GraphTest.java:465)
Caused by: java.net.SocketTimeoutException: Read timed out
  at java.net.SocketInputStream.socketRead0(Native Method)
  at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
  at java.net.SocketInputStream.read(SocketInputStream.java:171)
  at java.net.SocketInputStream.read(SocketInputStream.java:141)
  at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
  at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
  at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
  at com.facebook.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
  ... 9 more

java client有一个 execution timeout 这个参数 也可以调整一下

1赞

已调整有效

2赞

thanks :smiley:

1赞

client = new GraphClientImpl(list, 3600000, 1, 1);请问execution timeout 是在这里设置吗

浙ICP备20010487号