快照生成和日志应用能同时进行吗?
- Dominant language
- C++
- Stars
- 4.2k
- Forks
- 923
- PR merge metrics
- No merged PRs in 30d
Description
假设一个应用的状态机有2种数据,分别是:
```
vector a_;
vector b_;
```
a_,b_都可被多个线程并发访问.
有2种外部请求(对应生成不同类型的日志),分别影响a_,b_.
生成的快照要包含a_和b_的内容。
在生成快照时,生成a_的快照时,b_可能在变化;然后处理b_,此时a_又可能变化。
问题1: 这样生成快照文件的逻辑是不是有问题?
问题2:生成快照时,是不是不会完成apply(可调用,但不会完成), braft内部保证吗?
问题3:另外,快照记录能不能设定在每天特定的时间点进行?
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue asks about concurrent snapshot generation, apply completion guarantees, and scheduling snapshots at a fixed daily time, but names no files or tests. Start by reviewing braft's snapshot and apply behavior in the source and documentation. Done would require clearly resolving the three questions and defining any needed API or documentation changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100