Skip to content

Conversation

@javanna
Copy link
Member

@javanna javanna commented Mar 25, 2019

Remote cluster resolution is currently lenient, to support local
indices that may contain : in their name. From 8.0 on, there can no
longer be indices in the cluster that contain : in their name, hence
we can make remote cluster resolution stricter. Instead of treating
as local any index expression containing a : whenever there is no corresponding
matching remote cluster registered, we now throw a
NoSuchRemoteClusterException.

Closes #37863

@javanna javanna added >breaking :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. v8.0.0 labels Mar 25, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Remote cluster resolution is currently lenient, to support local
indices that may contain `:` in their name. From 8.0 on, there can no
longer be indices in the cluster that contain `:` in their name, hence
we can make remote cluster resolution stricter. Instead of treating
any index expression containing a `:` whenever there is no corresponding
matching remote cluster registered, we now throw a
`NoSuchRemoteClusterException`.

Closes elastic#37863
@javanna javanna force-pushed the enhancement/remote_cluster_resolver_strict branch from 565cf10 to 8d1404f Compare March 25, 2019 17:09
@javanna
Copy link
Member Author

javanna commented Mar 26, 2019

run elasticsearch-ci/packaging-sample

@ywelsch ywelsch added the :Core/Infra/REST API REST infrastructure and utilities label Mar 26, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@ywelsch ywelsch removed the :Distributed Indexing/Distributed A catch all label for anything in the Distributed Indexing Area. Please avoid if you can. label Mar 26, 2019
@javanna
Copy link
Member Author

javanna commented Mar 28, 2019

This effectively affects only CCS, as CCR already throws NoSuchRemoteClusterException when a non existing remote cluster is referenced.

@javanna javanna added :Search/Search Search-related issues that do not fall into other categories and removed :Core/Infra/REST API REST infrastructure and utilities labels Mar 28, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

Copy link
Contributor

@jimczi jimczi left a comment

Choose a reason for hiding this comment

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

LGTM

@javanna javanna merged commit 07f1aa5 into elastic:master Apr 4, 2019
@javanna
Copy link
Member Author

javanna commented Apr 4, 2019

Thanks @jimczi !!!

jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Apr 4, 2019
* elastic/master: (25 commits)
  Rollup ignores time_zone on date histogram (elastic#40844)
  HLRC: fix uri encode bug when url path starts with '/' (elastic#34436)
  Mutes GatewayIndexStateIT.testRecoverBrokenIndexMetadata
  Docs: Pin two IDs in the rest client (elastic#40785)
  Adds version 6.7.2
  [DOCS] Remind users to include @ symbol when applying license file (elastic#40688)
  HLRC: Convert xpack methods to client side objects (elastic#40705)
  Allow ILM to stop if indices have nonexistent policies (elastic#40820)
  Add an OpenID Connect authentication realm (elastic#40674)
  [DOCS] Rewrite query def (elastic#40746)
  [ML] Changes default destination index field mapping and adds scripted_metric agg (elastic#40750)
  Docs: Drop inline callouts from painless book (elastic#40805)
  [ML] refactoring start task a bit, removing unused code (elastic#40798)
  [DOCS] Document index.load_fixed_bitset_filters_eagerly (elastic#40780)
  Make remote cluster resolution stricter (elastic#40419)
  [ML] Add created_by info to usage stats (elastic#40518)
  SQL: [Docs] Small fixes for CURRENT_TIMESTAMP docs (elastic#40792)
  convert modules to use testclusters (elastic#40804)
  Replace javax activation with jakarta activation (elastic#40247)
  Document restrictions on fuzzy matching when using synonyms (elastic#40783)
  ...
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
Remote cluster resolution is currently lenient, to support local
indices that may contain `:` in their name. From 8.0 on, there can no
longer be indices in the cluster that contain `:` in their name, hence
we can make remote cluster resolution stricter. Instead of treating
any index expression containing a `:` whenever there is no corresponding
matching remote cluster registered, we now throw a
`NoSuchRemoteClusterException`.

Closes elastic#37863
@joegallo
Copy link
Contributor

Related to #23892

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking :Search/Search Search-related issues that do not fall into other categories v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CCS] improve response when node is not allowed to open remote connections in CCS

6 participants