Skip to content

Added infinite time retention configuration option - #1135

Merged
merlimat merged 3 commits into
apache:masterfrom
merlimat:infinite-retention
Jan 31, 2018
Merged

merlimat merged 3 commits into
apache:masterfrom
merlimat:infinite-retention

Conversation

@merlimat

Copy link
Copy Markdown
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

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.

should we also update it in cli-admin docs?

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.

Good point. I'll add it

@merlimat
merlimat merged commit 1bca601 into apache:master Jan 31, 2018
@merlimat
merlimat deleted the infinite-retention branch January 31, 2018 18:22
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