Closed
Description
This logic needs clarification and seems inconsistent:
DiscoveryNodes.resolver resolves an empty list of node id's to all nodes:
This is in contrast to consumers of this API which explicitly check if the resolved nodes have length == 0, e.g.
Due to the implicit to all resolving this can never happen.
It seems to me that:
- only
null
should trigger a resolve to all nodes but - an empty array should resolve to an empty array of nodes
This is potentially a tricky change. If you disagree, meaning if the current behavior is desired it would be good to clarify and document this.