-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Add influxd verify tsm-blocks #14243
Conversation
2ab3817
to
86a9803
Compare
025a624
to
07d3c44
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.
Thanks for this. I want all inspection tooling though to provide an exported API, so it can be called programatically. Here is a canonical example: #11964
I guess I would expect the API to live in tsdb/tsm1/verify.go
or somewhere similar?
Also, when this is done it can be ticked off this list 😄 #10993
Feedback done, @e-dard |
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 👍
This command performs verification of TSM blocks * expected and actual CRC-32 checksums match * expected and actual min and max timestamps match decoded data
Should have left it there to begin with 🤣
This command verifies
Example usages
Verify all tsm files in
~/tmp/storage/5
:$ influxd inspect verify-tsm ~/tmp/storage/5
Verify specific tsm file:
$ influxd inspect verify-tsm ~/tmp/storage/5/000000515941663-000000007.tsm
Verify all tsm files, limiting to a specific org:
$ influxd inspect verify-tsm --org-id=099683d2af6fba05 ~/tmp/storage/5/