diff --git a/client/src/main/java/com/vesoft/nebula/client/graph/SessionPool.java b/client/src/main/java/com/vesoft/nebula/client/graph/SessionPool.java index 6aaad0886..cfdc1a96d 100644 --- a/client/src/main/java/com/vesoft/nebula/client/graph/SessionPool.java +++ b/client/src/main/java/com/vesoft/nebula/client/graph/SessionPool.java @@ -159,7 +159,8 @@ public ResultSet execute(String stmt) throws IOErrorException, resultSet = nebulaSession.execute(stmt); if (resultSet.isSucceeded() || resultSet.getErrorCode() == ErrorCode.E_SEMANTIC_ERROR.getValue() - || resultSet.getErrorCode() == ErrorCode.E_SYNTAX_ERROR.getValue()) { + || resultSet.getErrorCode() == ErrorCode.E_SYNTAX_ERROR.getValue() + || resultSet.getErrorCode() == ErrorCode.E_QUERY_TIMEDOUT.getValue()) { releaseSession(nebulaSession); return resultSet; }