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

Add influxd verify tsm-blocks #14243

Merged
merged 3 commits into from
Jul 9, 2019
Merged

Add influxd verify tsm-blocks #14243

merged 3 commits into from
Jul 9, 2019

Conversation

stuartcarnie
Copy link
Contributor

@stuartcarnie stuartcarnie commented Jul 2, 2019

This command verifies

  • expected and actual CRC-32 checksums match
  • expected and actual min and max timestamps match decoded data

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/

Copy link
Contributor

@e-dard e-dard left a 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

@stuartcarnie
Copy link
Contributor Author

Feedback done, @e-dard

@stuartcarnie stuartcarnie requested a review from e-dard July 3, 2019 23:33
Copy link
Contributor

@e-dard e-dard left a 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 🤣
@stuartcarnie stuartcarnie merged commit f0f96ac into master Jul 9, 2019
@stuartcarnie stuartcarnie deleted the sgc/verify branch July 9, 2019 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants