-
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
bucket verify: false overlapping block reports #2420
Comments
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
@bwplotka I think this is a real bug introduced in v0.12.0, unless it has since been fixed |
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
Need to check if this is still valid. |
|
Evidence: thanos-compact is happy and in steady state, while thanos-compact log:
bucket verify:
|
Hello 👋 Looks like there was no activity on this issue for last 30 days. |
Closing for now as promised, let us know if you need this to be reopened! 🤗 |
Thanos, Prometheus and Golang version used: thanos v0.12.0-rc.1 (except for sidecar which is at v0.11.0)
Object Storage Provider: GCS
What happened: Ran
bucket verify
and it reported overlapping blocks. An 8h block recently written by compactor was overlapping four 2h blocks written by sidecar. But since the latest compactor implementation has a 48h block delete delay (#2136 ), this is expected.snippet from
bucket verify
output:What you expected to happen:
bucket verify
should be aware of block delete delay, and not report overlaps within that range (especially if it's a perfect overlap between compactor and sidecar blocks)How to reproduce it (as minimally and precisely as possible):
Run sidecar and compactor with default options. Check
bucket verify
after about 12 hours.Full logs to relevant components:
``` E 2020-04-13T03:31:25.241222230Z level=info ts=2020-04-13T03:31:25.241006853Z caller=compact.go:633 group="0@{replica=\"main\"}" groupKey=0@4233639831006398026 msg="compaction available and planned; downloading blocks" plan="[/var/thanos/compact/compact/0@4233639831006398026/01E5QW6MNFRSQEQ684CBK60CK2 /var/thanos/compact/compact/0@4233639831006398026/01E5R32C6EXB1DRE58D4VB70Q4 /var/thanos/compact/compact/0@4233639831006398026/01E5R9Y2FFGXWAKPBQ4BGN925Q /var/thanos/compact/compact/0@4233639831006398026/01E5RGSSSXDTNA379XN3EVQYZ5]"
E 2020-04-13T03:32:05.960222018Z level=info ts=2020-04-13T03:32:05.959913817Z caller=compact.go:692 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="downloaded and verified blocks; compacting blocks" plan="[/var/thanos/compact/compact/0@4233639831006398026/01E5QW6MNFRSQEQ684CBK60CK2 /var/thanos/compact/compact/0@4233639831006398026/01E5R32C6EXB1DRE58D4VB70Q4 /var/thanos/compact/compact/0@4233639831006398026/01E5R9Y2FFGXWAKPBQ4BGN925Q /var/thanos/compact/compact/0@4233639831006398026/01E5RGSSSXDTNA379XN3EVQYZ5]" duration=40.718598845s
E 2020-04-13T03:32:24.846681182Z level=info ts=2020-04-13T03:32:24.846395189Z caller=fetcher.go:451 component=block.BaseFetcher msg="successfully synchronized block metadata" duration=98.250223ms cached=56 returned=56 partial=0
E 2020-04-13T03:33:24.815335272Z level=info ts=2020-04-13T03:33:24.815094264Z caller=fetcher.go:451 component=block.BaseFetcher msg="successfully synchronized block metadata" duration=66.97198ms cached=56 returned=56 partial=0
E 2020-04-13T03:33:38.196496958Z level=info ts=2020-04-13T03:33:38.19619836Z caller=compact.go:441 msg="compact blocks" count=4 mint=1586707200000 maxt=1586736000000 ulid=01E5RSG6R668NAZESSQZED1TD7 sources="[01E5QW6MNFRSQEQ684CBK60CK2 01E5R32C6EXB1DRE58D4VB70Q4 01E5R9Y2FFGXWAKPBQ4BGN925Q 01E5RGSSSXDTNA379XN3EVQYZ5]" duration=1m32.236141704s
E 2020-04-13T03:33:38.268094915Z level=info ts=2020-04-13T03:33:38.26783171Z caller=compact.go:722 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="compacted blocks" new=01E5RSG6R668NAZESSQZED1TD7 blocks="[/var/thanos/compact/compact/0@4233639831006398026/01E5QW6MNFRSQEQ684CBK60CK2 /var/thanos/compact/compact/0@4233639831006398026/01E5R32C6EXB1DRE58D4VB70Q4 /var/thanos/compact/compact/0@4233639831006398026/01E5R9Y2FFGXWAKPBQ4BGN925Q /var/thanos/compact/compact/0@4233639831006398026/01E5RGSSSXDTNA379XN3EVQYZ5]" duration=1m32.307778181s overlapping_blocks=false
E 2020-04-13T03:34:07.430519788Z level=info ts=2020-04-13T03:34:07.430315711Z caller=compact.go:764 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="uploaded block" result_block=01E5RSG6R668NAZESSQZED1TD7 duration=25.371003415s
E 2020-04-13T03:34:07.522599830Z level=info ts=2020-04-13T03:34:07.522353634Z caller=compact.go:792 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="marking compacted block for deletion" old_block=01E5QW6MNFRSQEQ684CBK60CK2
E 2020-04-13T03:34:07.553891769Z level=info ts=2020-04-13T03:34:07.553709099Z caller=block.go:157 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="block has been marked for deletion" block=01E5QW6MNFRSQEQ684CBK60CK2
E 2020-04-13T03:34:07.654412028Z level=info ts=2020-04-13T03:34:07.654176246Z caller=compact.go:792 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="marking compacted block for deletion" old_block=01E5R32C6EXB1DRE58D4VB70Q4
E 2020-04-13T03:34:07.729202698Z level=info ts=2020-04-13T03:34:07.728845712Z caller=block.go:157 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="block has been marked for deletion" block=01E5R32C6EXB1DRE58D4VB70Q4
E 2020-04-13T03:34:07.819677228Z level=info ts=2020-04-13T03:34:07.819412578Z caller=compact.go:792 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="marking compacted block for deletion" old_block=01E5R9Y2FFGXWAKPBQ4BGN925Q
E 2020-04-13T03:34:07.854043215Z level=info ts=2020-04-13T03:34:07.853813446Z caller=block.go:157 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="block has been marked for deletion" block=01E5R9Y2FFGXWAKPBQ4BGN925Q
E 2020-04-13T03:34:08.031032346Z level=info ts=2020-04-13T03:34:08.030789754Z caller=compact.go:792 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="marking compacted block for deletion" old_block=01E5RGSSSXDTNA379XN3EVQYZ5
E 2020-04-13T03:34:08.080332509Z level=info ts=2020-04-13T03:34:08.080062267Z caller=block.go:157 group="0@{replica="main"}" groupKey=0@4233639831006398026 msg="block has been marked for deletion" block=01E5RGSSSXDTNA379XN3EVQYZ5
The text was updated successfully, but these errors were encountered: