Skip to content

Commit

Permalink
do not retry for query timeout (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 authored Nov 14, 2024
1 parent 9708d9c commit d5bf05f
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 d5bf05f

Please sign in to comment.