[tarantool-patches] [PATCH 0/2] Box control event trigger

Georgy Kirichenko georgy at tarantool.org
Tue Aug 28 19:19:11 MSK 2018


Introduce a ctl event trigger fired in cases of a bootstrap/recovery status
changes, a space create/alter/drop action, an applier state change and
shutdown. Trigger could be set with box.ctl_event even before the first
box.cfg invocation to control recovery and bootstrap behavior.
The patchset contains two patches, the first fixes a lua space cache
updates, the second introduces the control trigger.


Georgy Kirichenko (2):
  Update lua space cache just after creation
  On ctl event trigger

 src/box/CMakeLists.txt        |   2 +
 src/box/alter.cc              |  46 +++--
 src/box/applier.cc            |   6 +
 src/box/box.cc                |  42 ++++
 src/box/lua/init.c            |   2 +
 src/box/lua/load_cfg.lua      |   1 +
 test/box/ctl_event.result     | 364 ++++++++++++++++++++++++++++++++++
 test/box/ctl_event.test.lua   |  76 +++++++
 test/box/errinj.result        |  61 ++++++
 test/box/errinj.test.lua      |  27 +++
 test/box/lua/trig_master.lua  |   8 +
 test/box/lua/trig_replica.lua |  46 +++++
 test/box/misc.result          |  73 +++++++
 test/box/misc.test.lua        |  34 ++++
 14 files changed, 769 insertions(+), 19 deletions(-)
 create mode 100644 test/box/ctl_event.result
 create mode 100644 test/box/ctl_event.test.lua
 create mode 100644 test/box/lua/trig_master.lua
 create mode 100644 test/box/lua/trig_replica.lua

-- 
2.18.0
https://github.com/tarantool/tarantool/issues/3159
https://github.com/tarantool/tarantool/tree/g.kirichenko/gh-3159-on-ctl-event-trigger




More information about the Tarantool-patches mailing list