调用braft::cli::snapshot不会触发on_snapshot_save?
Open
- Dominant language
- C++
- Stars
- 4.2k
- Forks
- 923
- PR merge metrics
- No merged PRs in 30d
Description
snapshot_interval_= -1; /// 关闭快照
braft::cli::CliOptions options;
butil::Status status = braft::cli::snapshot(group_,peer_id_,options); /// 没有回调on_snapshot_save
请问应该如何做?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing braft::cli::snapshot with snapshot_interval_ set to -1, then inspect where on_snapshot_save is invoked in the snapshot flow. Reproduce the reported behavior using the shown CliOptions and record whether the callback is expected to run when snapshots are disabled. Done means the callback behavior and the required configuration or call sequence are verified and documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100