|
|
@@ -158,6 +158,7 @@ func (cw *streamWriter) run() {
|
|
|
|
|
|
cw.status.deactivate(failureType{source: t.String(), action: "heartbeat"}, err.Error())
|
|
|
|
|
|
+ sentFailures.WithLabelValues(cw.peerID.String()).Inc()
|
|
|
cw.close()
|
|
|
plog.Warningf("lost the TCP streaming connection with peer %s (%s writer)", cw.peerID, t)
|
|
|
heartbeatc, msgc = nil, nil
|
|
|
@@ -184,6 +185,7 @@ func (cw *streamWriter) run() {
|
|
|
plog.Warningf("lost the TCP streaming connection with peer %s (%s writer)", cw.peerID, t)
|
|
|
heartbeatc, msgc = nil, nil
|
|
|
cw.r.ReportUnreachable(m.To)
|
|
|
+ sentFailures.WithLabelValues(cw.peerID.String()).Inc()
|
|
|
|
|
|
case conn := <-cw.connc:
|
|
|
cw.mu.Lock()
|
|
|
@@ -388,6 +390,7 @@ func (cr *streamReader) decodeLoop(rc io.ReadCloser, t streamType) error {
|
|
|
plog.MergeWarningf("dropped internal raft message from %s since receiving buffer is full (overloaded network)", types.ID(m.From))
|
|
|
}
|
|
|
plog.Debugf("dropped %s from %s since receiving buffer is full", m.Type, types.ID(m.From))
|
|
|
+ recvFailures.WithLabelValues(types.ID(m.From).String()).Inc()
|
|
|
}
|
|
|
}
|
|
|
}
|