Skip to content

[BUG] minIndexAge, minPrimaryShardSize and other such params are of type 'Number' but should be string #1747

@patelsmit32123

Description

@patelsmit32123

What is the bug?

minIndexAge, minPrimaryShardSize and other such params are of type 'Number' but should be string as opensearch requires it be of format "5m", "1d" etc.

java-client/src/generated/java/org/opensearch/client/opensearch/ism/ActionRollover.java

/** * The minimum index age to trigger rollover. * <p> * API name: {@code min_index_age} * </p> */ @Nullable public final Number minIndexAge() { return this.minIndexAge; }

Error: failed to parse setting [min_index_age] with value [300000.0] as a time value: unit is missing or unrecognized

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