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服務,觀察狀態

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM