Skip to content

[Issue 8345][Documentation] Improve retention policy documentation - #8356

Merged
Jennifer88huang-zz merged 3 commits into
apache:masterfrom
lhotari:lh-fix-retention-documentation
Oct 26, 2020
Merged

[Issue 8345][Documentation] Improve retention policy documentation#8356
Jennifer88huang-zz merged 3 commits into
apache:masterfrom
lhotari:lh-fix-retention-documentation

Conversation

@lhotari

@lhotari lhotari commented Oct 23, 2020

Copy link
Copy Markdown
Member

Fixes #8345

Motivation

See #8345, #655

Modifications

Documentation has been improved to cover the fact that retention policy is always based on both time and size limit. To make either limit ignored, it can be set to -1. It's misleading in the current documentation to call this "infinite" limit since it simply ignores the limit when it's -1. Infinite retention can be achieved by specifying both limits to -1.
If either limit is 0, it will effectively disable the retention policy. This wasn't documented before at all.

Javadoc for ManagedLedgerConfig was also improved as part of the documentation changes.

…ention size

- explain the settings in other words to clarify the meaning
Fixes apache#8345

- the retention policy is based on both size and time
  - documentation was misleading and not accurate
- setting either limit to 0 disables retention policy
  - add this also to the documentation explicitly
@lhotari

lhotari commented Oct 23, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

2 similar comments
@lhotari

lhotari commented Oct 23, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@lhotari

lhotari commented Oct 23, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@jiazhai
jiazhai requested review from merlimat and sijie October 23, 2020 12:58
@jiazhai jiazhai added area/admin doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. labels Oct 23, 2020
@lhotari

lhotari commented Oct 23, 2020

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@sijie sijie added this to the 2.7.0 milestone Oct 23, 2020
@Jennifer88huang-zz
Jennifer88huang-zz merged commit a9633b5 into apache:master Oct 26, 2020
@lhotari
lhotari deleted the lh-fix-retention-documentation branch October 26, 2020 16:54
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
…pache#8356)

* Clarify javadoc documentation of ManagedLedger retention time and retention size

- explain the settings in other words to clarify the meaning

* Clarify retention policy documentation

Fixes apache#8345

- the retention policy is based on both size and time
  - documentation was misleading and not accurate
- setting either limit to 0 disables retention policy
  - add this also to the documentation explicitly

* Fix checkstyle violation
flowchartsman pushed a commit to flowchartsman/pulsar that referenced this pull request Nov 17, 2020
…pache#8356)

* Clarify javadoc documentation of ManagedLedger retention time and retention size

- explain the settings in other words to clarify the meaning

* Clarify retention policy documentation

Fixes apache#8345

- the retention policy is based on both size and time
  - documentation was misleading and not accurate
- setting either limit to 0 disables retention policy
  - add this also to the documentation explicitly

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

Labels

area/admin doc Your PR contains doc changes, no matter whether the changes are in markdown or code files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Documentation] Retention policy documentation is misleading and not accurate

5 participants