-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat bucket replicate: added flag to ignore blocks marked for deletion #5117
feat bucket replicate: added flag to ignore blocks marked for deletion #5117
Conversation
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
96b74f6
to
d0f58ef
Compare
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.
Please rebase on top of newest main
, those whitespace changes in docs/... are not needed.
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
ef9a1fa
to
53bab98
Compare
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
Thanks, @GiedriusS for the swift review! The white space changes were caused by the |
Passing through the docs test is a task on its own I see, might consider making it the default, so I do not have to add any flags 😄 |
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.
LGTM, let's see for a few days if anyone has any other suggestions
Only got one question, other than that, LGTM! :) |
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
Not sure why but the PR diff broke GitHub somehow 😅 |
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.
LGTM
thanos-io#5117) * feat bucket replicate: added flag to ignore blocks marked for deletion Signed-off-by: Martin Chodur <m.chodur@seznam.cz> * cr: fix docs and test Signed-off-by: Martin Chodur <m.chodur@seznam.cz> * cr: add debug log on failed deletion mark read Signed-off-by: Martin Chodur <m.chodur@seznam.cz> * cr: return error instead of logging issues with reading deletion marks Signed-off-by: Martin Chodur <m.chodur@seznam.cz> Signed-off-by: Nicholaswang <wzhever@gmail.com>
Hi, we bumped into some race conditions with
tools bucket replicate
from bucket with a compactor running, such as replication of a block that just gets deleted by compactor.Also, this can save some bandwidth, since it's mostly useless to sync blocks that will be deleted eventually.
Would you be ok accepting this? I'm open to any suggestions., thanks!
Changes
--ignore-marked-for-deletion
to thethanos bucket replicate
commandVerification