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

Add null check in more places for persistent tasks #123566

Conversation

ywangd
Copy link
Member

@ywangd ywangd commented Feb 27, 2025

There is no guarantee that a project has non-null persistent tasks [0]. Null check is already done in most places. This PR adds it in a few more places.

[0] Since health-node is now a cluster-scoped persistent task, it has become more likely for the project-scoped tasks to be null.

Relates: #123262

There is no guarantee that a project has non-null persistent tasks [0].
Null check is already done in most places. This PR adds it in a few more
places.

[0] Since health-node is now a cluster-scoped persistent task, it has
become more likely for the project-scoped tasks to be null.

Relates: elastic#123262
@ywangd ywangd added >non-issue :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. v9.1.0 labels Feb 27, 2025
@ywangd ywangd requested a review from tvernum February 27, 2025 02:34
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Feb 27, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@ywangd ywangd added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Feb 27, 2025
@elasticsearchmachine elasticsearchmachine merged commit cea5adc into elastic:feature/multi-project Feb 27, 2025
16 checks passed
@ywangd ywangd deleted the mp/feature/more-null-check-for-persistent-tasks branch February 27, 2025 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed Coordination/Task Management Issues for anything around the Tasks API - both persistent and node level. >non-issue Team:Distributed Coordination Meta label for Distributed Coordination team v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants