Skip to content

Conversation

davidkyle
Copy link
Member

@davidkyle davidkyle commented Sep 22, 2025

Several REST tests have failed due to this warning heading in the response to PUT _cluster/settings

Warnings: [Index [.ml-annotations-000001] name begins with a dot (.), which is deprecated, and will not be allowed in a future Elasticsearch version.]

The fix here is to add the internal .ml indices to the list of exceptions. As to why PUT _cluster/settings could return a warning about a deprecated index name? Cluster state updates are batched, the update settings request has been batched with a create index request and the warning has leaked out into this response.

Closes #133138, #129035, #132703, #128417 #135162, #135159, #135135

@davidkyle davidkyle added >test Issues or PRs that are addressing/adding tests :ml Machine learning v9.2.0 labels Sep 22, 2025
@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Sep 22, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

void validateIndices(@Nullable Set<String> indices) {
super.validateIndices(indices);
if (assertNoWarnings) {
assertWarnings();
Copy link
Member Author

Choose a reason for hiding this comment

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

Asserts that no warnings were created in the thread context

@davidkyle davidkyle added >test Issues or PRs that are addressing/adding tests and removed >test Issues or PRs that are addressing/adding tests labels Sep 22, 2025
@davidkyle davidkyle enabled auto-merge (squash) September 24, 2025 14:58
@davidkyle davidkyle changed the title [ML] Add .ml-anomalies and .ml-annotations to the DoPrefixValidator exceptions [ML] Add .ml-anomalies and .ml-annotations to the DotPrefixValidator exceptions Sep 24, 2025
@davidkyle davidkyle merged commit 3fa519a into elastic:main Sep 24, 2025
34 checks passed
davidkyle added a commit to davidkyle/elasticsearch that referenced this pull request Sep 30, 2025
)

(cherry picked from commit 3fa519a)

# Conflicts:
#	muted-tests.yml
davidkyle added a commit to davidkyle/elasticsearch that referenced this pull request Sep 30, 2025
)

(cherry picked from commit 3fa519a)

# Conflicts:
#	modules/dot-prefix-validation/src/main/java/org/elasticsearch/validation/DotPrefixValidator.java
#	muted-tests.yml
@davidkyle
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
9.1
8.19

Questions ?

Please refer to the Backport tool documentation

elasticsearchmachine pushed a commit that referenced this pull request Sep 30, 2025
…135677)

(cherry picked from commit 3fa519a)

# Conflicts:
#	muted-tests.yml
elasticsearchmachine pushed a commit that referenced this pull request Oct 8, 2025
) (#135678)

* [ML] Add .ml indices to the DoPrefixValidator exceptions (#135171)

(cherry picked from commit 3fa519a)

# Conflicts:
#	modules/dot-prefix-validation/src/main/java/org/elasticsearch/validation/DotPrefixValidator.java
#	muted-tests.yml

* [CI] Auto commit changes from spotless

---------

Co-authored-by: elasticsearchmachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:ml Machine learning Team:ML Meta label for the ML team >test Issues or PRs that are addressing/adding tests v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] TextEmbeddingQueryIT testModelWithPrefixStrings failing

4 participants