Skip to content
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 usages of LegacyClusterTaskResultActionListener #83784

Closed
16 tasks done
DaveCTurner opened this issue Feb 10, 2022 · 3 comments · Fixed by #89459
Closed
16 tasks done

Remove usages of LegacyClusterTaskResultActionListener #83784

DaveCTurner opened this issue Feb 10, 2022 · 3 comments · Fixed by #89459
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.

Comments

@DaveCTurner
Copy link
Contributor

DaveCTurner commented Feb 10, 2022

Description

In #83562 we introduced a new API for better batching of master tasks, and also the LegacyClusterTaskResultActionListener to adapt old implementations to the new API as a temporary measure. This issue tracks the work to remove this adapter.

@DaveCTurner DaveCTurner added >refactoring :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. labels Feb 10, 2022
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Feb 10, 2022
@elasticmachine
Copy link
Collaborator

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

DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue Feb 10, 2022
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue Feb 10, 2022
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue Feb 10, 2022
Today the `MasterService` permits clients to submit a batch of tasks
which it guarantees to execute together, but the only place that this
functionality is used in production code is for completing an election.
It was done this way so that each join could succeed or fail
independently, but since elastic#83562 we can track the status of joins through
to completion without needing them all to be separate tasks.

This commit introduces a `JoinTask` which represents the whole batch of
joins as a single task. It also gives us a place to hang the strange
`_FINISH_ELECTION_` task that was used to flag whether a batch was an
election-completing batch or not.

Relates elastic#83784
elasticsearchmachine pushed a commit that referenced this issue Feb 11, 2022
Today the `MasterService` permits clients to submit a batch of tasks
which it guarantees to execute together, but the only place that this
functionality is used in production code is for completing an election.
It was done this way so that each join could succeed or fail
independently, but since #83562 we can track the status of joins through
to completion without needing them all to be separate tasks.

This commit introduces a `JoinTask` which represents the whole batch of
joins as a single task. It also gives us a place to hang the strange
`_FINISH_ELECTION_` task that was used to flag whether a batch was an
election-completing batch or not.

Relates #83784
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue Feb 11, 2022
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue Feb 18, 2022
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue Feb 22, 2022
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue Apr 19, 2022
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue Apr 26, 2022
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue May 4, 2022
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this issue May 5, 2022
@PDTCCLF
Copy link

PDTCCLF commented May 24, 2022

Hi, @DaveCTurner. It looks like no one is assigned for the last item "to push o.e.cluster.ClusterStateTaskListener#clusterStateProcessed() down to o.e.cluster.ClusterStateUpdateTask". As a first time contributor, I believe I could do it.

@DaveCTurner
Copy link
Contributor Author

Thanks for the offer @PDTCCLF. This item is blocked on other work in the list but when it becomes unblocked it will only take us a few minutes to do so it's not something that will need external help.

elasticsearchmachine pushed a commit that referenced this issue Aug 18, 2022
Also removes the now-unused legacy method
`ClusterStateTaskListener#onClusterStateProcessed`.

Closes #83784
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants