push
github
raft: leader steps off on `ER_WAL_IO` Prior to this patch, the raft leader continued to send heartbeats even if it can't write anything, so it is seen by others as alive. As a result, once the leader encounters a disk error, it can't write anything, but the elections do not start. Now the leader resigns on the first encounter with `ER_WAL_IO` write error. Closes #9399 @TarantoolBot document Title: raft: leader resigns on the first encounter with `ER_WAL_IO` * Now the leader resigns on the first encounter with `ER_WAL_IO` write error (the leader broadcasts this). (cherry picked from commit 0e71be2e6)
63678 of 115132 branches covered (55.31%)
10 of 11 new or added lines in 4 files covered. (90.91%)
28 existing lines in 7 files now uncovered.94653 of 109922 relevant lines covered (86.11%)
1891121.77 hits per line