-
Notifications
You must be signed in to change notification settings - Fork 552
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
Return delete markers in mc find #5083
Conversation
…hat they are not hidden from the find function
Wouldn't this change existing behavior? Maybe do a |
It would however @vadmeste opinion was that although it may break in some rare corner cases in the community, it is better than adding a new flag. Your thoughts @klauspost ? |
I see potential scripts breaking... And weird stuff people use it for breaking in strange ways... So personally uncomfortable changing it. |
Let me take a closer look. |
…. Defaults to false
Simplified the implementation by enabling delete marker listing when using |
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.
Let's hope nobody loses data, then.
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
Default to list delete flags if they are part of the result set, so that they are not hidden from the find function
Motivation and Context
The default behaviour of
mc find
is to not return delete flags. However, for example in the case of ILM, this makes it difficult to detect if there are delete marker candidates for processing, even when theversions
flag is specified.How to test this PR?
Run
mc find --versions
on a specific bucket where delete markers are known to be present. These delete markers should be part of the result set.e.g.
Types of changes
Checklist:
commit-id
orPR #
here)