Skip to content

Commit

Permalink
do not retry for query timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 committed Nov 14, 2024
1 parent 9708d9c commit 9c25003
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9c25003

Please sign in to comment.