-
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
compact: Added overlap check before and after compact. Added extra index check for outsiders. #274
Conversation
cmd/thanos/main.go
Outdated
case <-c: | ||
return nil | ||
case s:= <-c: | ||
return errors.Errorf("caught %s signal. Exiting.", s.String()) |
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.
Won't this make our run*
functions return an error and make the program overall exit with 1
? Seems like that's not what we want.
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.
mhm, yea, let's println or log here instead
pkg/compact/compact.go
Outdated
metas = append(metas, m.BlockMeta) | ||
|
||
for _, s := range m.Compaction.Sources { | ||
exclude[s] = struct{}{} |
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.
this is not enough. Still we have blocks that are "within" newBlock but are not in new Block sources ): this is kind of confusing -> we have only leafs there, right?
Signed-off-by: Bartek Plotka <bwplotka@gmail.com> compact: Move overlaps to compact function. Signed-off-by: Bartek Plotka <bwplotka@gmail.com> compact: Added checks after compaction too. Signed-off-by: Bartek Plotka <bwplotka@gmail.com> compact: Added missed output block meta. Signed-off-by: Bartek Plotka <bwplotka@gmail.com> compact: Fixed overlapping check. Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka bwplotka@gmail.com