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

Chunktool add index-validate and index-clean commands #104

Merged
merged 21 commits into from
Oct 25, 2020

Conversation

jtlisi
Copy link
Contributor

@jtlisi jtlisi commented Oct 24, 2020

No description provided.

@jtlisi jtlisi requested a review from a team as a code owner October 24, 2020 02:58
return
}

c, err := chunk.ParseExternalKey("fake", chunkID)
Copy link
Contributor

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?

Copy link
Contributor Author

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

replay and others added 6 commits October 24, 2020 14:52
* 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>
Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jtlisi jtlisi merged commit dbb152d into master Oct 25, 2020
@jtlisi jtlisi deleted the cortextool_chunk_clean branch October 25, 2020 01:22
simonswine pushed a commit to grafana/mimir that referenced this pull request Jan 12, 2022
…-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>
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.

2 participants