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

Use scheduleUnlessShuttingDown in LeaderChecker #108643

Conversation

DaveCTurner
Copy link
Contributor

We mustn't throw an exception here, it trips an assertion. Simply giving
up on shutdown is fine.

Closes #108642

We mustn't throw an exception here, it trips an assertion. Simply giving
up on shutdown is fine.

Closes elastic#108642
@DaveCTurner DaveCTurner added >bug :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.15.0 labels May 14, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Meta label for distributed team label May 14, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @DaveCTurner, I've created a changelog YAML for you.

@DaveCTurner DaveCTurner requested a review from ywangd May 14, 2024 20:55
public String toString() {
return "scheduled check of leader " + leader;
}
});
Copy link
Contributor

Choose a reason for hiding this comment

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

We have similar in FollowerChecker, should that be updated as well?

private void scheduleNextWakeUp() {
transportService.getThreadPool().schedule(new Runnable() {
@Override
public void run() {
handleWakeUp();
}
@Override
public String toString() {
return FollowerChecker.this + "::handleWakeUp";
}
}, followerCheckInterval, EsExecutors.DIRECT_EXECUTOR_SERVICE);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I don't see why not --> #108685

Copy link
Member

@ywangd ywangd left a comment

Choose a reason for hiding this comment

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

LGTM

@DaveCTurner DaveCTurner merged commit a037e8c into elastic:main May 15, 2024
15 checks passed
@DaveCTurner DaveCTurner deleted the 2024/05/14/LeaderChecker-scheduleUnlessShuttingDown branch May 15, 2024 14:54
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request May 15, 2024
DaveCTurner added a commit that referenced this pull request May 16, 2024
nicktindall pushed a commit to nicktindall/elasticsearch that referenced this pull request May 17, 2024
parkertimmins pushed a commit to parkertimmins/elasticsearch that referenced this pull request May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. Team:Distributed Meta label for distributed team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] EsRejectedExecutionException trips TransportService assertion on shutdown
4 participants