-
Notifications
You must be signed in to change notification settings - Fork 69
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
Chunktool add index-validate and index-clean commands #104
Conversation
* feat: add chunk index-validate command Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * fix linting error Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * use go 1.14.9 Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
pkg/chunk/cassandra/scanner.go
Outdated
return | ||
} | ||
|
||
c, err := chunk.ParseExternalKey("fake", chunkID) |
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.
should this be hard-coded to fake
?
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.
Good catch, it should be configurable but default to fake
* make flags consistent, update log messages and changelog Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * fix errors Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * better named commands Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * fix changelog Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * refactor code a bit more Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * update readme Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * better help text * graceful error handling Co-authored-by: Mauro Stettler <mauro.stettler@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com>
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
…-tools#104) * add "chunk clean" command * wrap error * load cortex config * load schema config * use yamlv2 for config file parsing * wip * fix threading * fixes * error handling * reset line counter * read file in another thread * parse hex * wrap original error * remove comments * feat: add chunk index-validate command (grafana/cortex-tools#103) * feat: add chunk index-validate command Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * fix linting error Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * use go 1.14.9 Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * cleanup input better * make flags consistent, update log messages and changelog (grafana/cortex-tools#105) * make flags consistent, update log messages and changelog Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * fix errors Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * better named commands Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * fix changelog Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * refactor code a bit more Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * update readme Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * better help text * graceful error handling Co-authored-by: Mauro Stettler <mauro.stettler@gmail.com> * Update changelog to 0.4.1 release * remove unneeded map Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * fix from/to ranges Signed-off-by: Jacob Lisi <jacob.t.lisi@gmail.com> * log output for clean-index Co-authored-by: Mauro Stettler <mauro.stettler@gmail.com>
No description provided.