Skip to content

[DOCS] add comment to clarify cluster name resolution#34014

Merged
javanna merged 2 commits intoelastic:masterfrom
javanna:enhancement/ccs_separator_comments
Sep 25, 2018
Merged

[DOCS] add comment to clarify cluster name resolution#34014
javanna merged 2 commits intoelastic:masterfrom
javanna:enhancement/ccs_separator_comments

Conversation

@javanna
Copy link
Copy Markdown
Contributor

@javanna javanna commented Sep 24, 2018

We currently fallback to local indices whenever a remote cluster is not found, as there may still be indices / aliases with the same name. Such behaviour is lenient but needs to be kept for backwards compatibility. Clarified that in the code so we don't forget.

Relates to #26247

We currently fallback to local indices whenever a remote cluster is not found, as there may still be indices / aliases with the same name. Such behaviour is lenient but needs to be kept for backwards compatibility. Clarified that in the code so we don't forget.
@javanna javanna added >non-issue :Search/Search Search-related issues that do not fall into other categories v7.0.0 v6.5.0 labels Sep 24, 2018
@javanna javanna requested a review from martijnvg September 24, 2018 19:11
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search-aggs

perClusterIndices.computeIfAbsent(clusterName, k -> new ArrayList<>()).add(indexName);
}
} else {
//Indices can be created with ":" in their names only up to 5.6, and still be there up to 6.last, but aliases may be
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think both alias and index names can have : in the name until 6.last? https://github.com/elastic/elasticsearch/blob/6.x/server/src/main/java/org/elasticsearch/cluster/metadata/MetaDataCreateIndexService.java#L170

This validation method is both used for alias and index names. From 6.0 we log a deprecation warning, but not fail it. From 7.0 we fail such index or alias nems

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

you are right, I thought that we introduced index name validation for that earlier compared to aliases. I will update.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I pushed an update, thanks for double checking this Martijn.

Copy link
Copy Markdown
Member

@martijnvg martijnvg 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 970407c into elastic:master Sep 25, 2018
javanna added a commit to javanna/elasticsearch that referenced this pull request Sep 25, 2018
We currently fallback to local indices whenever a remote cluster is not found, as there may still be indices / aliases with the same name. Such behaviour is lenient but needs to be kept for backwards compatibility. Clarified that in the code so we don't forget.

Relates to elastic#26247
kcm pushed a commit that referenced this pull request Oct 30, 2018
We currently fallback to local indices whenever a remote cluster is not found, as there may still be indices / aliases with the same name. Such behaviour is lenient but needs to be kept for backwards compatibility. Clarified that in the code so we don't forget.

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

Labels

>non-issue :Search/Search Search-related issues that do not fall into other categories v6.5.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants