`box.ctl.wal_sync` can be used in lua to wait write flush
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 49
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
Description
Now one can use box.ctl.wal_sync() to wait until all submitted
writes are successfully flushed to the disk. If write fails it
throws an error. After the function is executed one may reliably
use box.info.vclock for comparisons when choosing a new master
Fixes #10142
Requested by @LevKats in https://github.com/tarantool/tarantool/commit/ea847e1a55a051ff0acb3a8b20761782de5e3c7b.
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
Start with the box.ctl.wal_sync() Lua API entry point and inspect nearby Tarantool API documentation for the appropriate location. Done means the documentation explains that it waits for submitted writes to flush, raises an error on failure, and allows reliable box.info.vclock comparisons when choosing a new master.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100