Skip to content

Commit df6aa7a

Browse files
authored
Add deprecation notice for max_size rollover condition (#5399)
1 parent b18318c commit df6aa7a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

specification/ilm/_types/Phase.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ export class SetPriorityAction {
9797
}
9898

9999
export class RolloverAction {
100+
/**
101+
* The `max_size` condition has been deprecated in 9.3.0 and `max_primary_shard_size` should be used instead
102+
* @deprecated 9.3.0 */
100103
max_size?: ByteSize
101104
max_primary_shard_size?: ByteSize
102105
max_age?: Duration

specification/indices/rollover/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export class RolloverConditions {
2727
max_age_millis?: DurationValue<UnitMillis>
2828
min_docs?: long
2929
max_docs?: long
30+
/**
31+
* The `max_size` condition has been deprecated in 9.3.0 and `max_primary_shard_size` should be used instead
32+
* @deprecated 9.3.0 */
3033
max_size?: ByteSize
3134
max_size_bytes?: long
3235
min_size?: ByteSize

0 commit comments

Comments
 (0)