* [tarantool-patches] [PATCH] replication: do not abort replication on ER_UNKNOWN_REPLICA
@ 2019-08-27 16:07 Konstantin Osipov
2019-08-27 18:50 ` Vladimir Davydov
0 siblings, 1 reply; 2+ messages in thread
From: Konstantin Osipov @ 2019-08-27 16:07 UTC (permalink / raw)
To: tarantool-patches; +Cc: Konstantin Osipov
From: Konstantin Osipov <kostja.osipov@gmail.com>
In 3-node replica-set, registering with the leader node
does not guarantee the registration record arrives to the second
peer immediately. The joining node may bootstrap faster than
the registration record arrives to the second peer, in which
case replication will fail to create a full mesh.
Fixes gh-4455
---
src/box/applier.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/box/applier.cc b/src/box/applier.cc
index 4304ff055..6239fcfd3 100644
--- a/src/box/applier.cc
+++ b/src/box/applier.cc
@@ -100,6 +100,7 @@ applier_log_error(struct applier *applier, struct error *e)
case ER_ACCESS_DENIED:
case ER_NO_SUCH_USER:
case ER_SYSTEM:
+ case ER_UNKNOWN_REPLICA:
say_info("will retry every %.2lf second",
replication_reconnect_interval());
break;
--
2.20.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [tarantool-patches] [PATCH] replication: do not abort replication on ER_UNKNOWN_REPLICA
2019-08-27 16:07 [tarantool-patches] [PATCH] replication: do not abort replication on ER_UNKNOWN_REPLICA Konstantin Osipov
@ 2019-08-27 18:50 ` Vladimir Davydov
0 siblings, 0 replies; 2+ messages in thread
From: Vladimir Davydov @ 2019-08-27 18:50 UTC (permalink / raw)
To: Konstantin Osipov; +Cc: tarantool-patches, Konstantin Osipov
On Tue, Aug 27, 2019 at 07:07:20PM +0300, Konstantin Osipov wrote:
> From: Konstantin Osipov <kostja.osipov@gmail.com>
>
> In 3-node replica-set, registering with the leader node
> does not guarantee the registration record arrives to the second
> peer immediately. The joining node may bootstrap faster than
> the registration record arrives to the second peer, in which
> case replication will fail to create a full mesh.
Makes sense. Ack.
>
> Fixes gh-4455
> ---
> src/box/applier.cc | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/box/applier.cc b/src/box/applier.cc
> index 4304ff055..6239fcfd3 100644
> --- a/src/box/applier.cc
> +++ b/src/box/applier.cc
> @@ -100,6 +100,7 @@ applier_log_error(struct applier *applier, struct error *e)
> case ER_ACCESS_DENIED:
> case ER_NO_SUCH_USER:
> case ER_SYSTEM:
> + case ER_UNKNOWN_REPLICA:
> say_info("will retry every %.2lf second",
> replication_reconnect_interval());
> break;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-08-27 18:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-27 16:07 [tarantool-patches] [PATCH] replication: do not abort replication on ER_UNKNOWN_REPLICA Konstantin Osipov
2019-08-27 18:50 ` Vladimir Davydov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox