Skip to content

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

Conversation

DaveCTurner
Copy link
Contributor

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.

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.
@DaveCTurner DaveCTurner added >refactoring :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.2.0 labels Feb 28, 2022
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Feb 28, 2022
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@DaveCTurner
Copy link
Contributor Author

@elasticmachine please run elasticsearch-ci/part-1

threadPool
)
)
.collect(Collectors.toList())
Copy link
Contributor

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?

Suggested change
.collect(Collectors.toList())
.toList()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, yes.

@DaveCTurner
Copy link
Contributor Author

@elasticmachine please run elasticsearch-ci/rest-compatibility

@DaveCTurner
Copy link
Contributor Author

#84484 will fix the unrelated failure; @elasticmachine please run elasticsearch-ci/part-1

@DaveCTurner DaveCTurner merged commit 3ddcc22 into elastic:master Mar 1, 2022
@DaveCTurner DaveCTurner deleted the 2022-02-28-master-service-remove-intermediate-classes branch March 1, 2022 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. >refactoring Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants