Tarantool development patches archive
 help / color / mirror / Atom feed
From: Georgy Kirichenko <georgy@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Georgy Kirichenko <georgy@tarantool.org>
Subject: [tarantool-patches] [PATCH 0/2] Box control event trigger
Date: Tue, 28 Aug 2018 19:19:11 +0300	[thread overview]
Message-ID: <cover.1535472838.git.georgy@tarantool.org> (raw)

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

             reply	other threads:[~2018-08-28 16:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-28 16:19 Georgy Kirichenko [this message]
2018-08-28 16:19 ` [tarantool-patches] [PATCH 1/2] Update lua space cache just after creation Georgy Kirichenko
2018-08-30 12:06   ` Vladimir Davydov
2018-08-31  4:57     ` [tarantool-patches] " Georgy Kirichenko
2018-08-30 12:31   ` Konstantin Osipov
2018-08-31  4:53     ` Georgy Kirichenko
2018-08-28 16:19 ` [tarantool-patches] [PATCH 2/2] On ctl event trigger Georgy Kirichenko
2018-08-30 12:07   ` Vladimir Davydov
2018-08-30 12:10   ` Vladimir Davydov
2018-08-30 12:38   ` Vladimir Davydov
2018-08-30 13:04     ` Georgy Kirichenko
2018-08-30 13:21     ` Vladimir Davydov
2018-08-30 14:45       ` [tarantool-patches] " Konstantin Osipov
2018-08-30 14:40     ` Konstantin Osipov
2018-08-30 12:50   ` Konstantin Osipov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1535472838.git.georgy@tarantool.org \
    --to=georgy@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH 0/2] Box control event trigger' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox