From: Eric Multanen Date: Tue, 22 Sep 2020 18:10:32 +0000 (-0700) Subject: Fix rsync retry logic for unreachable cluster X-Git-Tag: 0.7.0~11^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F39%2F113439%2F1;p=multicloud%2Fk8s.git 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 --- 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 } }