baidu / braft

An industrial-grade C++ implementation of RAFT consensus algorithm based on brpc, widely used inside Baidu to build highly-available distributed systems.
Apache License 2.0
3.84k stars 862 forks source link

快照逻辑在极端场景下存在数据无法正常恢复的风险 #462

Open Axlgrep opened 1 week ago

Axlgrep commented 1 week ago

目前的快照逻辑在磁盘满的情况下存在异常, 无法生成新的snapshot, 但是却将本地的braft日志给清理掉了, 这里导致重启的时候故障恢复期间一直校验失败退出, 这个问题的详细描述和修复在 #461 中进行跟进.

Axlgrep commented 6 days ago

@PFZheng 辛苦帮忙一起看一下这个问题, 感谢~