最近测试发现TDengine的WAL_LEVEL设置为2时,插入数据后并不会主动进行刷盘
Open
Nobody has claimed this yet.
help wanted
question
- Dominant language
- C
- Stars
- 25.1k
- Forks
- 5k
- Avg merge
- 4d 59m
- Merged PRs (30d)
- 7
Description
WAL_LEVEL设置为2
WAL_FSYNC_PERIOD设置为3000
等待一段时间后,并没有进行刷盘操作
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with WAL_LEVEL set to 2 and WAL_FSYNC_PERIOD set to 3000, then observe whether inserted data is flushed after waiting. Trace the WAL handling and fsync scheduling paths related to these settings. Done means the expected flush occurs after the configured period, with a regression test covering the behavior.
Written by the indexing model from the issue text.
Assessment
- Domain
- databases, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100