-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Add max_single_primary_size as a condition for the rollover index API #67842
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add max_single_primary_size as a condition for the rollover index API #67842
Conversation
It had no non-test callers, so YAGNI.
to separate the building of a Conditition.Stats cleanly from the evaluation of same.
Pinging @elastic/es-core-features (Team:Core/Features) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some minor comments, but this looks great!
...rest-high-level/src/main/java/org/elasticsearch/client/indices/rollover/RolloverRequest.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/action/admin/indices/rollover/RolloverRequest.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/elasticsearch/action/admin/indices/rollover/RolloverRequestBuilder.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/elasticsearch/action/admin/indices/rollover/TransportRolloverAction.java
Outdated
Show resolved
Hide resolved
Just a copy/paste + search&replace on 30_max_size_condition.yml, nothing special.
It's just a copy/paste/edit of testRolloverMaxSize, but it's still got some value.
This comment has been minimized.
This comment has been minimized.
56c4b2a
to
70ed3e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for iterating on this!
Thanks for iterating with me! |
Related to #63026
This PR ignores ILM and any deprecation that we might end up doing. It's just adding a new feature, the ability to specify
max_single_primary_size
as a condition for the_rollover
API.Note: I still have some docs and test changes to get in, but this is probably 90% done and would be okay to review.