Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprecovery from snapshots fails on compaction #4442
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks for the report. This is a known issue, which was fixed with 2.3.2. |
This comment has been minimized.
This comment has been minimized.
|
No problem! Weird, I swore I just reproduced it in 2.3.2. Is there a way to force a compaction (or have it occur sooner)? |
This comment has been minimized.
This comment has been minimized.
|
Should i expect a 2.3.1 snapshot to to still exhibit this behavior on 2.3.2 (i.e. do i need to take a new snapshot on 2.3.2)? I tried this in 2.3.2, both using the docker run method above and haven't seen this error. Thanks! |
karlhungus
closed this
Aug 1, 2018
This comment has been minimized.
This comment has been minimized.
|
A little more info for people who come across this problem:
|
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
karlhungus commentedAug 1, 2018
•
edited
Bug Report
What did you do?
Prometheus runs for a bit then errors out with compaction errors
Steps to reproduce:
tmpandcfgdocker run -p 9090:9090 -v $(pwd)/tmp:/data -v $(pwd)/cfg:/cfg docker.io/prom/prometheus:v2.3.1 --storage.tsdb.path=/data/ --web.enable-admin-api --config.file=/cfg/prometheus.yamlcurl -XPOST http://localhost:9090/api/v1/admin/tsdb/snapshottar cf foo.tar *tmptmptar xf foo.tardocker run -p 9090:9090 -v $(pwd)/tmp/:/data/ -v $(pwd)/cfg:/cfg docker.io/prom/prometheus:v2.3.1 --storage.tsdb.path=/data/ --web.enable-admin-api --config.file=/cfg/prometheus.yamlcomponent=tsdb msg="compaction failed" err="reload blocks: invalid block sequence: block time ranges overlapNote:
this step took almost 4 hours for me to reproduce:
What did you expect to see?
prometheus running with data from the snapshot
What did you see instead? Under which circumstances?
compaction seemed to detect overlapping blocks
Environment
System information:
insert output of
uname -srmhereI've also seen this multiple times with containers on:
Prometheus version:
insert output of
prometheus --versionhereOther things
I'm attempting now to reproduce this in 2.3.2 and will post my findings.