-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Remove some inner classes from MasterService #84448
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
Remove some inner classes from MasterService #84448
Conversation
Today the `MasterService` has inner classes `TaskInputs`, `TaskOutputs` and `BatchExecutionResult` that collect up various data needed for the cluster state update computation. In fact they're not necessary: we already have everything we need at the top level except the new `ClusterState`, which we can return directly.
Pinging @elastic/es-distributed (Team:Distributed) |
@elasticmachine please run elasticsearch-ci/part-1 |
threadPool | ||
) | ||
) | ||
.collect(Collectors.toList()) |
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 believe this was moved from createAckListener
, however is it possible to update it to use immutable list?
.collect(Collectors.toList()) | |
.toList() |
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.
Good point, yes.
@elasticmachine please run elasticsearch-ci/rest-compatibility |
#84484 will fix the unrelated failure; @elasticmachine please run elasticsearch-ci/part-1 |
Today the
MasterService
has inner classesTaskInputs
,TaskOutputs
and
BatchExecutionResult
that collect up various data needed for thecluster state update computation. In fact they're not necessary: we
already have everything we need at the top level except the new
ClusterState
, which we can return directly.