tarantool / tarantool/doc

`box.ctl.wal_sync` can be used in lua to wait write flush

Open
#4,498 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

server wal
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.