Skip to content

Conversation

@arteam
Copy link
Contributor

@arteam arteam commented Feb 4, 2022

Since DiscoverNodes now extends AbstractCollection we don't need a method exposing
DiscoveryNodes as a Collection and we can call stream directly on DiscoveryNodes

This also should reduce confusion between having getAllNodes and getNodes methods together in the API.

See #83453

@arteam arteam added >non-issue :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >refactoring auto-backport Automatically create backport pull requests when merged v8.1.1 labels Feb 4, 2022
Since DiscoverNodes now extends `AbstractCollection` we don't need a method exposing
DiscoveryNodes as a `Collection` and we can call `stream` directly on `DiscoveryNodes`

See elastic#83453
@arteam arteam force-pushed the remove-discovery-nodes-all-nodes branch from fc4a9d4 to 0ae3ba8 Compare February 4, 2022 17:31
@arteam arteam marked this pull request as ready for review February 4, 2022 20:50
@elasticmachine elasticmachine added the Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. label Feb 4, 2022
@elasticmachine
Copy link
Collaborator

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

@arteam
Copy link
Contributor Author

arteam commented Feb 4, 2022

@elasticmachine run elasticsearch-ci/part-2

@arteam arteam merged commit 221ab4b into elastic:master Feb 7, 2022
@arteam arteam deleted the remove-discovery-nodes-all-nodes branch February 7, 2022 08:24
@arteam
Copy link
Contributor Author

arteam commented Feb 7, 2022

Thanks Ievgen!

arteam added a commit to arteam/elasticsearch that referenced this pull request Feb 7, 2022
Since DiscoverNodes now extends `AbstractCollection` we don't need a method exposing
DiscoveryNodes as a `Collection` and we can call `stream` directly on `DiscoveryNodes`

See elastic#83453
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.1

arteam added a commit that referenced this pull request Feb 7, 2022
Since DiscoverNodes now extends `AbstractCollection` we don't need a method exposing
DiscoveryNodes as a `Collection` and we can call `stream` directly on `DiscoveryNodes`

See #83453
weizijun added a commit to weizijun/elasticsearch that referenced this pull request Feb 7, 2022
* upstream/master:
  [DOCS] Switch xrefs to external links (elastic#83590)
  [DOCS] 'features' flag added in elastic#83083 (elastic#83452)
  Rename ChangePolicyforIndexIT to ChangePolicyForIndexIT (elastic#83569)
  Fixing random_sampler tests (elastic#83549)
  Upgrade Checkstyle to 9.3 (elastic#83314)
  Make improvements to the release notes generator (elastic#83525)
  Cleanup DataTierAllocationDecider (elastic#83572)
  Upgrade jANSI dependency to 2.4.0 (elastic#83566)
  Speed up Name Collision Check in Metadata.Builder (elastic#83340)
  SQL: Add range checks to interval multiplication operation (elastic#83478)
  Remove DiscoveryNodes#getAllNodes (elastic#83538)
  Make RoutingNodes behave like a collection (elastic#83540)
  Remove Unused CS Listener from SecurityServerTransportInterceptor (elastic#83556)
arteam added a commit that referenced this pull request Feb 14, 2022
arteam added a commit that referenced this pull request Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. >non-issue >refactoring Team:Distributed (Obsolete) Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination. v8.1.1 v8.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants