Skip to content

make delete request cancellation duration configurable and rename data-purger to purger - #2760

Merged
pracucci merged 3 commits into
cortexproject:masterfrom
sandeepsukhani:delete-request-cancellation
Jun 22, 2020
Merged

pracucci merged 3 commits into
cortexproject:masterfrom
sandeepsukhani:delete-request-cancellation

Conversation

@sandeepsukhani

@sandeepsukhani sandeepsukhani commented Jun 22, 2020 •

Copy link
Copy Markdown
Contributor

What this PR does:
Duration until which delete requests are allowed to be cancelled after creation is made configurable. This would help with integration tests and run this initially with a higher value until we have more confidence in its stability.
This PR also renames flags and references from datapurger to purger for simplicity and consistency.

Checklist

  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Sandeep Sukhani <[email protected]>

@pstibrany pstibrany left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

Comment thread pkg/chunk/purger/purger.go Resolved

@gouthamve gouthamve left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM but I agree the name should be shorter. Will think of something soon and update the thread.

@pracucci
pracucci merged commit e1bed8d into cortexproject:master Jun 22, 2020
Comment thread CHANGELOG.md
* [CHANGE] Available command-line flags are printed to stdout, and only when requested via `-help`. Using invalid flag no longer causes printing of all available flags. #2691
* [CHANGE] Experimental Memberlist ring: randomize gossip node names to avoid conflicts when running multiple clients on the same host, or reusing host names (eg. pods in statefulset). Node name randomization can be disabled by using `-memberlist.randomize-node-name=false`. #2715
* [CHANGE] Memberlist KV client is no longer considered experimental. #2725
* [CHANGE] Change target flag for purger from `data-purger` to `purger` and make delete request cancellation duration configurable. #2760

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry, my bad. I just renamed the components and missed changing the flag. Will open a PR to fix this.

@bboreham

Copy link
Copy Markdown
Contributor

Did we mark the purger as experimental? If not, changing the name would trigger a major release.

@sandeepsukhani

Copy link
Copy Markdown
Contributor Author

Did we mark the purger as experimental? If not, changing the name would trigger a major release.

Yes, it is marked experimental. See https://github.com/cortexproject/cortex/blob/master/pkg/chunk/purger/purger.go#L141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants