feedback: box.ctl.on_election() | Tarantool
@andreyaksenov is already working on this.
Since Aug 19, 2024.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 49
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
Description
<…>
box.ctl.on_election()
|box.ctl.on_election|(trigger-function)
Since: 2.10.0
Create a trigger executed every<…>
https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_ctl/on_election/
It seems important to note that the trigger function may observe box.info.ro == true even if the trigger is called, because the given instance is promoted. The reason is that a synchronous queue owner is changed in background (see https://github.com/tarantool/tarantool/issues/10040).
IOW, this trigger is not suitable to execute a function that performs something like if box.info.ro then return end on the beginning.
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.
Assessment
This issue has not been assessed yet.