gavinchou commented on code in PR #42653: URL: https://github.com/apache/doris/pull/42653#discussion_r1822223612
########## fe/fe-core/src/main/java/org/apache/doris/system/Backend.java: ########## @@ -898,6 +912,13 @@ public boolean handleHbResponse(BackendHbResponse hbResponse, boolean isReplay) lastMissingHeartbeatTime = System.currentTimeMillis(); } + if (isChanged) { + Random random = new SecureRandom(); + int second = random.nextInt(Math.max(Config.heartbeat_interval_second, + Config.editlog_healthy_heartbeat_seconds)); + this.lastEditlogHeartbeatTime = System.currentTimeMillis() + second * 1000L / 2; Review Comment: lastEditlogHeartbeatTime is a future time? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org