Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3pt] document triggers on election state change #2274

Closed
Tracked by #2802
TarantoolBot opened this issue Aug 5, 2021 · 0 comments · Fixed by #3580
Closed
Tracked by #2802

[3pt] document triggers on election state change #2274

TarantoolBot opened this issue Aug 5, 2021 · 0 comments · Fixed by #3580
Assignees
Labels
2.10 feature A new functionality reference [location] Tarantool manual, Reference part replication [area] Related to Replication triggers [area] Related to triggers

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Aug 5, 2021

Product: Tarantool
Since: 2.10.0-beta1
Root document: https://www.tarantool.io/en/doc/latest/book/box/triggers/
https://www.tarantool.io/en/doc/latest/book/replication/repl_leader_elect/
SME: @ sergepetrenko

Details

A new function to register triggers is added, box.ctl.on_election().
Triggers registered via this function are run asynchronously every time
a visible change in box.info.election table appears.
No parameters are passed to the trigger, it may check what's changed by
looking at box.info.election and box.info.synchro.
Requested by @sergepetrenko in tarantool/tarantool@7f5876f.

See if "Automated leader election" needs to be updated as well.

@art-dr art-dr added this to the Estimate [@arctic_dreamer] milestone Aug 25, 2021
@art-dr art-dr added server [area] Task relates to Tarantool's server (core) functionality reference [location] Tarantool manual, Reference part labels Aug 31, 2021
@art-dr art-dr changed the title document triggers on election state change [3pt?] document triggers on election state change Aug 31, 2021
@art-dr art-dr added the feature A new functionality label Sep 1, 2021
@art-dr art-dr changed the title [3pt?] document triggers on election state change [3pt] document triggers on election state change Sep 1, 2021
@art-dr art-dr removed this from the Estimate [@arctic_dreamer] milestone Sep 1, 2021
@veod32 veod32 added the replication [area] Related to Replication label Feb 3, 2022
@patiencedaur patiencedaur added the triggers [area] Related to triggers label Mar 21, 2022
@veod32 veod32 removed the server [area] Task relates to Tarantool's server (core) functionality label Mar 6, 2023
@TarantoolBot TarantoolBot removed the 3sp label Jun 7, 2023
@veod32 veod32 added the 2.10 label Jun 17, 2023
@andreyaksenov andreyaksenov self-assigned this Jul 14, 2023
@andreyaksenov andreyaksenov linked a pull request Jul 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.10 feature A new functionality reference [location] Tarantool manual, Reference part replication [area] Related to Replication triggers [area] Related to triggers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants