Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4381788

Browse files
knizhnikkelvich
authored andcommitted
Add extra logging for sending heartbeats
1 parent 7e70f24 commit 4381788

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arbiter.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,10 @@ static void MtmSendHeartbeat()
412412
}
413413
MTM_LOG4("Send heartbeat to node %d with timestamp %lld", i+1, now);
414414
}
415-
} else {
415+
} else {
416+
if (last_heartbeat_to_node[i] + MSEC_TO_USEC(MtmHeartbeatSendTimeout)*2 < now) {
417+
MTM_LOG1("Heartbeat is not sent to node %d during %lld microseconds because socket is busy", i+1, now - last_heartbeat_to_node[i]);
418+
}
416419
MTM_LOG2("Do not send heartbeat to node %d, busy mask %lld, status %s", i+1, busy_mask, MtmNodeStatusMnem[Mtm->status]);
417420
}
418421
}

0 commit comments

Comments
 (0)