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

Added infinite time retention configuration option #1135

Merged
merged 3 commits into from
Jan 31, 2018

Conversation

merlimat
Copy link
Contributor

Motivation

Currently, there is no direct way to configure an "infinite" retention time on data published on Pulsar topics, other than setting a very high value for both retention time and size.

We should have a better way to mean "infinite", by allowing to specify -1.

Modifications

  • Allow to get -1 for retention time and retention size
  • Do not delete data or topics when infinite retention time is set
  • Update CLI tool documentation to clarify the behavior

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Jan 29, 2018
@merlimat merlimat added this to the 1.22.0-incubating milestone Jan 29, 2018
@merlimat merlimat self-assigned this Jan 29, 2018
@@ -300,10 +300,12 @@ void run() throws PulsarAdminException {
private java.util.List<String> params;

@Parameter(names = { "--time",
"-t" }, description = "Retention time in minutes (or minutes, hours,days,weeks eg: 100m, 3h, 2d, 5w)", required = true)
"-t" }, description = "Retention time in minutes (or minutes, hours,days,weeks eg: 100m, 3h, 2d, 5w). "
Copy link
Contributor

Choose a reason for hiding this comment

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

should we also update it in cli-admin docs?

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 point. I'll add it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants