|
|
@@ -55,10 +55,12 @@ func send(c *http.Client, cl *Cluster, m raftpb.Message, ss *stats.ServerStats,
|
|
|
for i := 0; i < 3; i++ {
|
|
|
memb := cl.Member(m.To)
|
|
|
if memb == nil {
|
|
|
- // TODO: unknown peer id.. what do we do? I
|
|
|
- // don't think his should ever happen, need to
|
|
|
- // look into this further.
|
|
|
- log.Printf("etcdhttp: no member for %s", strutil.IDAsHex(m.To))
|
|
|
+ if !cl.IsIDRemoved(m.To) {
|
|
|
+ // TODO: unknown peer id.. what do we do? I
|
|
|
+ // don't think his should ever happen, need to
|
|
|
+ // look into this further.
|
|
|
+ log.Printf("etcdhttp: error sending message to unknown receiver %s", strutil.IDAsHex(m.To))
|
|
|
+ }
|
|
|
return
|
|
|
}
|
|
|
u := fmt.Sprintf("%s%s", memb.PickPeerURL(), raftPrefix)
|