Skip to content

Commit

Permalink
[enhancement](blacklist) ignore shutdown message to avoid add the bac…
Browse files Browse the repository at this point in the history
…kend to blacklist
  • Loading branch information
yiguolei committed Dec 24, 2024
1 parent c9d3f11 commit e516c7d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ public RowBatch getNext(Status status) throws TException {
status.updateStatus(TStatusCode.TIMEOUT, e.getMessage());
} else {
status.updateStatus(TStatusCode.THRIFT_RPC_ERROR, e.getMessage());
SimpleScheduler.addToBlacklist(backendId, e.getMessage());
// Shutdown maybe called by other request, should ignore this case.
if (!e.getMessage().contains("shutdown")) {
SimpleScheduler.addToBlacklist(backendId, e.getMessage());
}
}
} catch (TimeoutException e) {
LOG.warn("fetch result timeout, finstId={}", DebugUtil.printId(finstId), e);
Expand Down

0 comments on commit e516c7d

Please sign in to comment.