Skip to content

Commit d5bf05f

Browse files
authored
do not retry for query timeout (#611)
1 parent 9708d9c commit d5bf05f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/src/main/java/com/vesoft/nebula/client/graph/SessionPool.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ public ResultSet execute(String stmt) throws IOErrorException,
159159
resultSet = nebulaSession.execute(stmt);
160160
if (resultSet.isSucceeded()
161161
|| resultSet.getErrorCode() == ErrorCode.E_SEMANTIC_ERROR.getValue()
162-
|| resultSet.getErrorCode() == ErrorCode.E_SYNTAX_ERROR.getValue()) {
162+
|| resultSet.getErrorCode() == ErrorCode.E_SYNTAX_ERROR.getValue()
163+
|| resultSet.getErrorCode() == ErrorCode.E_QUERY_TIMEDOUT.getValue()) {
163164
releaseSession(nebulaSession);
164165
return resultSet;
165166
}

0 commit comments

Comments
 (0)