diff options
author | Eric Multanen <eric.w.multanen@intel.com> | 2020-09-22 11:10:32 -0700 |
---|---|---|
committer | Eric Multanen <eric.w.multanen@intel.com> | 2020-10-01 21:18:03 -0700 |
commit | 16dbf45f9fe05eab889e4c362f8cdbfbb968ea19 (patch) | |
tree | 0aea4c92e187997f8932cf9ba2c4818ff436ce5c /src | |
parent | 5e114cd8a05986b7762fb9db22a43d61bb9fe00e (diff) |
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 <eric.w.multanen@intel.com>
Change-Id: I5e8202358cfd8cdd15c9feb4fcbefe2683b7139a
Diffstat (limited to 'src')
-rw-r--r-- | src/rsync/pkg/context/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } } |