Skip to content

TransportTasksAction does not respect an empty set of nodes #53281

Closed
@hendrikmuhs

Description

@hendrikmuhs

This is a follow up of #52887

With #53277 it has been clarified that an empty list of nodes resolves to all nodes. https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/support/tasks/TransportTasksAction.java#L241 is in-effective.If an implementer sets an empty list its implicitly resolved to all nodes:
https://github.com/elastic/elasticsearch/blob/master/server/src/main/java/org/elasticsearch/action/support/tasks/TransportTasksAction.java#L230

Iff request.getNodes() returns an empty array, the resolver should be skipped, so that network calls are not sent in L241 as originally designed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Distributed Coordination/Task ManagementIssues for anything around the Tasks API - both persistent and node level.Team:Distributed (Obsolete)Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions