site replication: avoid retries when peer is offline (#17853)

This commit is contained in:
Poorna 2023-08-14 21:31:41 -07:00 committed by GitHub
parent 4643efe6be
commit 875f4076ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2560,7 +2560,13 @@ func (c *SiteReplicationSys) siteReplicationStatus(ctx context.Context, objAPI O
func(deploymentID string, p madmin.PeerInfo) error {
admClient, err := c.getAdminClient(ctx, deploymentID)
if err != nil {
return err
switch err.(type) {
case RemoteTargetConnectionErr:
sris[depIdx[deploymentID]] = madmin.SRInfo{}
return nil
default:
return err
}
}
srInfo, err := admClient.SRMetaInfo(ctx, opts)
if err != nil {