minio / mc

Unix like utilities for object store
https://min.io/download
GNU Affero General Public License v3.0
2.86k stars 548 forks source link

mirror: let user decide whether to skip errors if client runs in watch / active-active mode #4986

Closed mchtech closed 3 months ago

mchtech commented 3 months ago

Description

Fix #4883

Motivation and Context

When client has run with --watch and minio servers are down (or encounter a network error), watch request and mirroring progress will not recover forever after serveral retries.

In version 2022-04-01, mirroring progress will be cancelled and restarted when statusCh returns a no-ignored error.

After PR 4032, mirroring progress will not be restarted forever when client runs with --watch and/or --active-active.

This patch restores the "restart" policy in version 2022-04-01 and users can also pass --skip-errors to keep same behavior of current implementation.

How to test this PR?

Types of changes

Checklist: