Skip to content

New keys with TTL not deleted after expiration following update to include marker TTL #6920

Closed
@ani-philips

Description

@ani-philips

Observed behavior

I encountered an issue with the key-value store involving marker TTL functionality. Initially, I created the key-value store without setting a marker TTL. Later, I edited and updated the store to include a marker TTL and then added a new key with its own TTL. However, I've observed that the entity is not automatically deleted once its TTL expires.

Expected behavior

Upon editing the key-value store to include a marker TTL, any subsequently added key with its own TTL should be automatically deleted once the TTL expires.

Is this the behavior that is expected?

Server and client version

Server version: 2.11.3
Client version: 0.2.3

Host environment

Windows and Kubernetes

Steps to reproduce

nats kv add testkv
nats kv edit testkv --marker-ttl=30s
nats kv create testkv key value --ttl=20s
#Sleep
sleep 25s
nats kv get testkv key
#expectation is to not find the key. But the key is found

Metadata

Metadata

Assignees

No one assigned

    Labels

    defectSuspected defect such as a bug or regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions