Skip to content

TS.ALTER does not update retention #2481

Closed
@MR4online

Description

@MR4online

Description

I do have a redis time series with retention set to a value > 0

When I want to change the retention back to 0 (disable it for this series), no change is done.
I think there may be an bug in the code in index.js line 127:

function pushRetentionArgument(args, retention) {
    if (retention) {
        args.push('RETENTION', retention.toString());
    }
    return args;
}

if retention === 0, it will not be added to the args array.

kind regards!

Node.js Version

v16.16.0

Redis Server Version

6.2.7

Node Redis Version

4.6.5

Platform

macOS

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions