ETCD 添加节点报错 tocommit(2314438) is out of range [lastIndex(0)]. Was the raft log corrupted, truncated, or lost?
生产环境中一台ETCD节点宕机之后,添加新的节点的时候出现以下错误,
tocommit(2314438) is out of range [lastIndex(0)]. Was the raft log corrupted, truncated, or lost?
出现该错误的原因应该是member add时候出现异常
解决方案:
把之前执行member add的节点移除,重新添加一下应该就可以解决;我们这边生产环境就是这么解决的,如果有别的异常可以留言一起讨论
member remove xxxx
member add xxxx
重启xxxx节点etcd服务,观察状态