From: Konstantin Osipov <kostja@tarantool.org>
To: tarantool-patches@freelists.org
Cc: georgy@tarantool.org
Subject: [tarantool-patches] Re: [PATCH] replication: display correct status at upstream
Date: Sat, 28 Apr 2018 23:45:57 +0300 [thread overview]
Message-ID: <20180428204557.GB4857@atlas> (raw)
In-Reply-To: <20180428203036.GA4857@atlas>
* Konstantin Osipov <kostja@tarantool.org> [18/04/28 23:30]:
> * Konstantin Belyavskiy <k.belyavskiy@tarantool.org> [18/04/27 13:43]:
> > This fix improves 'box.info.replication' output.
> > If downstream fails and thus disconnects from upstream, improve
> > logging by printing 'status: disconnected'.
> > Add relay_state { NONE, CONNECTED, DISCONNECTED } to track replica
> > presence, once connected it either CONNECTED or DISCONNECTED until
> > master is reset.
> >
> > Closes #3365
>
> Hi,
>
> the patch is very good, almost ready to push, but I would like to
> request more work.
>
> First, a very minor reason why I'm not pushing it right away is
> that I believe relay states should be matched with applier states.
>
> The matching applier states are OFF, FOLLOW and STOPPED.
> I think it would be easier for users if we don't invent new states
> on relay side.
>
> Second, we allocate relay object on stack; this seems to be a historical
> artifact, we have had struct relay before we got struct replica.
> Relay has a diagnostics area, so by keeping the relay around we
> will be able to display the last error in a way similar to
> applier.
>
> I'm not talking about pushing the message back from the applier to
> relay - this seems to be an unnecessary hassle and will complicate
> things quite a bit.
One more thing. As I wrote earlier, it is difficult or impossible
to reliable deliver the error message from applier to the relay.
But what we could do at the relay side, if we see that state is
"stopped" and there is no message in relay->diag, we could set a
helper error ER_RELAY_STOPPED "Please check peer upstream status
fin box.info.replication for reason". This would direct users
towards finding the cause of the problem.
--
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov
next prev parent reply other threads:[~2018-04-28 20:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-27 10:39 [tarantool-patches] " Konstantin Belyavskiy
2018-04-28 20:30 ` [tarantool-patches] " Konstantin Osipov
2018-04-28 20:45 ` Konstantin Osipov [this message]
2018-05-04 14:09 ` [tarantool-patches] " Konstantin Belyavskiy
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=20180428204557.GB4857@atlas \
--to=kostja@tarantool.org \
--cc=georgy@tarantool.org \
--cc=tarantool-patches@freelists.org \
--subject='[tarantool-patches] Re: [PATCH] replication: display correct status at upstream' \
/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