Skip to content

函数 LogManager::unsafe_truncate_suffix 执行崩溃 #515

Description

@yuhaijun999

./braft/src/braft/log_manager.cpp 位置:

307 void LogManager::unsafe_truncate_suffix(const int64_t last_index_kept) {
308
309 ¦ if (last_index_kept < _applied_id.index) {
310 ¦ ¦ ¦ LOG(FATAL) << "Can't truncate logs before _applied_id=" <<_applied_id.index
311 ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦<< ", last_log_kept=" << last_index_kept;
312 ¦ ¦ ¦ return;
313 ¦ }

崩溃在 310 行 有人知道是什么问题吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions