Skip to content
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

fix tools bucket replicate: fix ignoring of deleted blocks #5162

Merged
merged 3 commits into from
Feb 17, 2022

Conversation

FUSAKLA
Copy link
Member

@FUSAKLA FUSAKLA commented Feb 15, 2022

Even though ignoring of deleted blocks by the tools bucket replicate added in #5117 works

It does not use the code base for filtering already prepared and that brings one additional drawback and that is it fails on reading block metadata if in process of deletion (which was also the case we were hitting)

The former implementation first read all meta files (which fails for the block that is being deleted) and only after checks for the deletion mark. The deletion mark has to be checked first, as the filtered meta fetcher does.

Sorry about that

Please, @GiedriusS and @wiardvanrij would you take a look one more time? 🙏

pkg/replicate/replicator.go Outdated Show resolved Hide resolved
@FUSAKLA FUSAKLA force-pushed the fus-fix-ignore-deleted branch 2 times, most recently from 9d1654b to 2dba037 Compare February 15, 2022 16:48
@FUSAKLA FUSAKLA force-pushed the fus-fix-ignore-deleted branch from 2dba037 to bffc17e Compare February 15, 2022 17:00
Signed-off-by: Martin Chodur <[email protected]>
@FUSAKLA FUSAKLA requested a review from metalmatze February 15, 2022 19:09
pkg/replicate/replicator.go Outdated Show resolved Hide resolved
@FUSAKLA FUSAKLA requested a review from yeya24 February 16, 2022 20:46
@yeya24 yeya24 merged commit d0249f1 into thanos-io:main Feb 17, 2022
Nicholaswang pushed a commit to Nicholaswang/thanos that referenced this pull request Mar 6, 2022
…#5162)

* fix tools bucket replicate: fix ignoring of deleted blocks

Signed-off-by: Martin Chodur <[email protected]>

* cr: style fixes

Signed-off-by: Martin Chodur <[email protected]>

* cr: optimize return and changelog white noise

Signed-off-by: Martin Chodur <[email protected]>
Signed-off-by: Nicholaswang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants