pulsar-resources-operator icon indicating copy to clipboard operation
pulsar-resources-operator copied to clipboard

Infinite message retention in namspaces

Open SmnBo opened this issue 6 months ago • 0 comments

The pulsar documentation describes a setting for infinite retention, when both the time limit and the size limit are set to -1.

I added this setting to a pulsar namespace for the pulsar operator:

retentionSize: "-1" retentionTime: "-1"

This resulted in the following error that I accessed with kubectl describe: time: missing unit in duration "-1"

I tried to solve this by changing retentionTime: "-1s", yet this resulted in the following error:

code: 400 reason: Invalid retention policy: Setting a single time or size limit to 0 is invalid when one of the limits has a non-zero value. Use the value of -1 instead of 0 to ignore a specific limit. To disable retention both limits must be set to 0.

Is there a way to set both retentionSize and retentionTime to -1? Is this a planned feature or not yet impelmented?

SmnBo avatar Jul 01 '25 14:07 SmnBo