Преглед изворни кода

etcdserver: clarify read index wait timeout warnings

"read index" doesn't tell much about the root cause.
Most likely, the local follower node is having slow
network, thus timing out waiting to receive read
index response from leader.

Signed-off-by: Gyuho Lee <leegyuho@amazon.com>
Gyuho Lee пре 7 година
родитељ
комит
38711761a1
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      etcdserver/v3_server.go

+ 2 - 2
etcdserver/v3_server.go

@@ -693,9 +693,9 @@ func (s *EtcdServer) linearizableReadLoop() {
 				}
 			case <-time.After(s.Cfg.ReqTimeout()):
 				if lg != nil {
-					lg.Warn("timed out waiting for read index response", zap.Duration("timeout", s.Cfg.ReqTimeout()))
+					lg.Warn("timed out waiting for read index response (local node might have slow network)", zap.Duration("timeout", s.Cfg.ReqTimeout()))
 				} else {
-					plog.Warningf("timed out waiting for read index response")
+					plog.Warningf("timed out waiting for read index response (local node might have slow network)")
 				}
 				nr.notify(ErrTimeout)
 				timeout = true