Skip to content

Commit

Permalink
Avoid infinite and unecessary loop when CN RPC processors are killed/…
Browse files Browse the repository at this point in the history
…interrupted by OS (#12584)
  • Loading branch information
Pengzna authored May 24, 2024
1 parent f60694b commit fad6553
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public String getClusterIdWithRetry(long maxWaitTime) {
Thread.sleep(100);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
LOGGER.warn("Unexpected interruption during waiting for get cluster id.");
break;
}
}
return clusterInfo.getClusterId();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ public TSStatus confirmLeader() {
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
LOGGER.warn("Unexpected interruption during waiting for configNode leader ready.");
break;
}
}
result.setMessage(
Expand Down

0 comments on commit fad6553

Please sign in to comment.