From 0976d20aee60ef84a2e800104a77c352cacb1104 Mon Sep 17 00:00:00 2001
From: Konstantin Osipov <kostja.osipov@gmail.com>
Date: Tue, 27 Aug 2019 15:42:46 +0300
Subject: [PATCH] replication: do not abort replication on ER_UNKNOWN_REPLICA

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.

(cherry picked from commit a850acfd02ed8d68b754f1c44f08bd92ddae04a1)
---
 src/box/applier.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/box/applier.cc b/src/box/applier.cc
index cf03ea1600..f7617bbd70 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;
-- 
GitLab