mirror of
https://github.com/actiontech/dble.git
synced 2026-05-09 07:50:39 -05:00
Gate delay rebase on init timestamp
Co-authored-by: 859235917 <859235917@qq.com>
This commit is contained in:
@@ -56,7 +56,7 @@ public class MySQLDelayDetector extends MySQLDetector {
|
||||
heartbeat.setSlaveBehindMaster((int) delayVal);
|
||||
heartbeat.setDbSynStatus(MySQLHeartbeat.DB_SYN_NORMAL);
|
||||
} else {
|
||||
if (heartbeat.getStatus() != MySQLHeartbeat.OK_STATUS) {
|
||||
if (logic == 0) {
|
||||
long updatedLogic = dbGroup.getLogicTimestamp().updateAndGet(current -> Math.max(current, delay));
|
||||
LOGGER.warn("delay detection rebased logic_timestamp to {} for dbGroup {}", updatedLogic, dbGroup.getGroupName());
|
||||
heartbeat.setSlaveBehindMaster(0);
|
||||
|
||||
Reference in New Issue
Block a user