[FAQ] rejected stream from remote peer because it was removed

[问题澄清]

[2020/07/01 17:10:33.821 +08:00] [WARN] [http.go:416] ["rejected stream from remote peer because it was removed"] [local-member-id=39d28144ccd4134e] [remote-peer-id-stream-handler=39d28144ccd4134e] [remote-peer-id-from=dd9bd949af64a37e]

[原因分析]

该报错说明 pd 扩容后,etcd cluster 拒绝了远程 peer 的加入请求。通过 cluster-id 可以看到对应的扩容 pd 的记录的 cluster-id 和 pd leader 的 cluster-id 不一样,说明扩容 pd 的信息没有清理干净,需要通过 pd-ctl member 确认

[解决方案]

确认 cluster-id 是否和 Leader 有差异,可以判断是否是没有清理干净数据导致的