The following ILM tests all contain switch statements with branches that will never execute. The tests use a `between(x, y)` switch expression, but there are `case` values that are outside the randomised range. We need to fix these before #88739 can be merged. By "fix", I mean either remove the spurious cases, or if we actually want them, then extend the randomized range.

   * ActionConfigStatsTests
   * AllocateActionTests
   * CopyExecutionStateStepTests
   * RolloverActionTests
   * WaitForRolloverReadyStepTests

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ilm/RolloverAction.java
}
    }
    @Override
    public void writeTo(StreamOutput out) throws IOException {
        boolean hasMaxSize = maxSize != null;
        out.writeBoolean(hasMaxSize);
        if (hasMaxSize) {
            maxSize.writeTo(out);
        }
        boolean hasMaxPrimaryShardSize = maxPrimaryShardSize != null;
        out.writeBoolean(hasMaxPrimaryShardSize);
        if (hasMaxPrimaryShardSize) {
            maxPrimaryShardSize.writeTo(out);
        }
        out.writeOptionalTimeValue(maxAge);
        out.writeOptionalVLong(maxDocs);
        if (out.getVersion().onOrAfter(Version.V_8_2_0)) {
            out.writeOptionalVLong(maxPrimaryShardDocs);
        }
    }
    @Override
    public String getWriteableName() {
        return NAME;
    }
    public ByteSizeValue getMaxSize() {
        return maxSize;
    }
    public ByteSizeValue getMaxPrimaryShardSize() {
        return maxPrimaryShardSize;
    }