-
Notifications
You must be signed in to change notification settings - Fork 575
Exit mc mirror when errors occur if retry is disabled and it's a watch operation #5163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Solves #5162 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I may be missing something, but this seems very likely to break all kind of stuff already running?
@klauspost it is a breaking change but I think it makes sense. |
Yeah. I think that is the only reasonable approach. |
New flag added and removed the need for the |
ok, so my only remaining reservation is that it may not exit in all cases where people would expect it, but I can live with that. |
It's tricky to get it to fail everywhere where it might fail because everything happens separately but I think |
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.
Description
When running
mc mirror --watch
the cli exits with a non-zero exit code instead of just printing the error.Motivation and Context
I'm running
mc mirror --watch
in a systemd unit to constantly mirror my minio buckets to AWS S3. In the current state, it's not possible to monitor mc effectively since the process will just continue running.How to test this PR?
Types of changes
Checklist:
commit-id
orPR #
here)