From 16dbf45f9fe05eab889e4c362f8cdbfbb968ea19 Mon Sep 17 00:00:00 2001 From: Eric Multanen Date: Tue, 22 Sep 2020 11:10:32 -0700 Subject: Fix rsync retry logic for unreachable cluster Fix rsync to only retry reaching clusters until the timeout occurs. Issue-ID: MULTICLOUD-1226 Signed-off-by: Eric Multanen Change-Id: I5e8202358cfd8cdd15c9feb4fcbefe2683b7139a --- src/rsync/pkg/context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/rsync/pkg/context/context.go b/src/rsync/pkg/context/context.go index 35e6c4e2..a2771379 100644 --- a/src/rsync/pkg/context/context.go +++ b/src/rsync/pkg/context/context.go @@ -252,7 +252,6 @@ Loop: break Loop } else { logutils.Info("Cluster is not reachable - keep trying::", logutils.Fields{"cluster": cluster}) - go checkReachable() } case <-ch: statusFailed := resourcestatus.ResourceStatus{ @@ -279,6 +278,7 @@ Loop: } resStateUpdated = true } + go checkReachable() break } } -- cgit 1.2.3-korg