From f179d4d6a3ca16ef91705f4d1754b07fc6de8610 Mon Sep 17 00:00:00 2001 From: Gyuho Lee Date: Thu, 2 May 2019 10:02:28 -0700 Subject: [PATCH] etcdserver: improve heartbeat send failures logging Signed-off-by: Gyuho Lee --- etcdserver/raft.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcdserver/raft.go b/etcdserver/raft.go index a77c89c8997..f73df6c7dc0 100644 --- a/etcdserver/raft.go +++ b/etcdserver/raft.go @@ -344,7 +344,7 @@ func (r *raftNode) processMessages(ms []raftpb.Message) []raftpb.Message { ok, exceed := r.td.Observe(ms[i].To) if !ok { // TODO: limit request rate. - plog.Warningf("failed to send out heartbeat on time (exceeded the %v timeout for %v)", r.heartbeat, exceed) + plog.Warningf("failed to send out heartbeat on time (exceeded the %v timeout for %v, to %x)", r.heartbeat, exceed, ms[i].To) plog.Warningf("server is likely overloaded") heartbeatSendFailures.Inc() }