Results 24 issues of Yonghao Zou

**Describe the bug** There are many "vector_alloc_slot" in current code base, and the function can fail in some situations, but all the use of this function are not error handled....

Hi, I got some FATL logs when I test with the calc example. ``` -- Replicated Calculator with Raft -- Version 0.1.0 Server ID: 3 Endpoint: 127.0.1.1:10003 [22:52:27.407 845] [tid...

I got an assertion failure of read_bytes_helper: ``` [INFO log_pending_events()] SYSCALL: read [INFO log_pending_events()] (none) [RecordSession] EXEC_SYSCALL_DONE: status=0x857f (SYSCALL) [RecordSession] original_syscallno:0 (read); return val:0xfffffffffffffff2 [record_syscall] 119139: processing: SYSCALL: read --...

Hi, I am wondering if it is possible to checkpoint during recording which is useful to test or fuzz a long-run program for quickly resuming to a running state. Actually...

目前情况是有5个节点,其中一个节点出现了如下日志: ``` I1125 03:38:29.105105 36781 /home/zyh/braft/example/atomic/server.cpp:305] Node stepped down : Raft node receives higher term request_vote_request. ``` 其他节点看起来正常,但客户端请求全部超时了。 另外,目前节点step down之后似乎是无法恢复的,是否应该让step down的节点,在收到新leader节点消息后重新变为follower呢?

使用atomic_server测试,发现某一节点出现大量 `reject term_unmatched AppendEntries`错误,且客户端操作都超时了。 日志如下,其中节点1和2在测试开始后不久被`kill`掉,因此master一直报连不上两个节点。 [log_app_err0_0.txt](https://github.com/baidu/braft/files/7389277/log_app_err0_0.txt) [log_app_err1_0.txt](https://github.com/baidu/braft/files/7389280/log_app_err1_0.txt) [log_app_err2_0.txt](https://github.com/baidu/braft/files/7389281/log_app_err2_0.txt) [log_app_err3_0.txt](https://github.com/baidu/braft/files/7389282/log_app_err3_0.txt) [log_app_err4_0.txt](https://github.com/baidu/braft/files/7389284/log_app_err4_0.txt)

对不同节点多次重启,其中一个节点有一个报错如下: ``` F0417 12:13:43.014115 108347 /home/zyh/braft/src/braft/log_manager.cpp:310] Can't truncate logs before _applied_id=1, last_log_kept=0 F0417 12:13:43.043589 108347 /home/zyh/braft/src/braft/configuration_manager.cpp:24] Check failed: false. Did you forget to call truncate_suffix before the last log index...

``` I0418 23:23:48.741300 83193 /home/zyh/braft/example/atomic/server.cpp:300] Node becomes leader F0418 23:23:48.834052 83193 /home/zyh/braft/src/braft/log.cpp:463] Check failed: meta.term == header.term (5 vs 6). #0 0x000000b76fd0 logging::LogMessage::~LogMessage() #1 0x0000008dc0e1 braft::Segment::get() #2 0x0000008f41af braft::SegmentLogStorage::get_entry() #3...