Skip to content

Infinite message retention in namspaces #324

@SmnBo

Description

@SmnBo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions