You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.elasticsearch.xpack.test.rest.XPackRestIT > test {p0=ml/trained_model_cat_apis/Test cat trained models} FAILED java.lang.AssertionError: Failure at [ml/trained_model_cat_apis:93]: expected [2xx] status code but api [cat.ml_trained_models] returned [500 Internal Server Error] [{"error":{"root_cause":[{"type":"no_shard_available_action_exception","reason":"[yamlRestTest-0][127.0.0.1:36254][indices:data/read/search[phase/query]]","index_uuid":"BeB3z_omTnuUIjJekil3jQ","shard":"0","index":".ml-stats-000001","stack_trace":"[.ml-stats-000001/BeB3z_omTnuUIjJekil3jQ][[.ml-stats-000001][0]] NoShardAvailableActionException[[yamlRestTest-0][127.0.0.1:36254][indices:data/read/search[phase/query]]]\n\tat org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:459)\n\tat org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:408)\n\tat org.elasticsearch.action.search.AbstractSearchAsyncAction.access$000(AbstractSearchAsyncAction.java:70)\n\tat org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:275)\n\tat
The text was updated successfully, but these errors were encountered:
This makes me think something is leaking into this test causing the creation of the index. The test that ran immediately before was ml/inference_stats_crud/Test get stats given expression without matches and allow_no_match is true.
It looks like we've found our culprit: inference_stats_crud may need to be rewritten as a rest test so we can wait for all the actions to finish
This sounds like it is another issue caused by the problem of #65846, which could affect users in production as well as tests. And I just noticed that #66853 has been opened to fix that. So maybe the days of intermittent ML test failures due to indices that get created as side effects of other actions are coming to an end 🤞
Build scan:
https://gradle-enterprise.elastic.co/s/5irmyjghkz5mc/console-log/raw?task=:x-pack:plugin:yamlRestTest
Repro line:
REPRODUCE WITH: ./gradlew ':x-pack:plugin:yamlRestTest' --tests "org.elasticsearch.xpack.test.rest.XPackRestIT.test {p0=ml/trained_model_cat_apis/Test cat trained models}" -Dtests.seed=E59A966331A469D9 -Dtests.security.manager=true -Dtests.locale=hr -Dtests.timezone=Greenwich -Druntime.java=8 -Dtests.rest.blacklist=getting_started/10_monitor_cluster_health/*
Reproduces locally?:
No, fails for different reasons for me locally.
Applicable branches:
Only seen on 7.x
Failure history:
Apparently just this one failure.
Failure excerpt:
Not sure what's relevant here, sorry.
org.elasticsearch.xpack.test.rest.XPackRestIT > test {p0=ml/trained_model_cat_apis/Test cat trained models} FAILED java.lang.AssertionError: Failure at [ml/trained_model_cat_apis:93]: expected [2xx] status code but api [cat.ml_trained_models] returned [500 Internal Server Error] [{"error":{"root_cause":[{"type":"no_shard_available_action_exception","reason":"[yamlRestTest-0][127.0.0.1:36254][indices:data/read/search[phase/query]]","index_uuid":"BeB3z_omTnuUIjJekil3jQ","shard":"0","index":".ml-stats-000001","stack_trace":"[.ml-stats-000001/BeB3z_omTnuUIjJekil3jQ][[.ml-stats-000001][0]] NoShardAvailableActionException[[yamlRestTest-0][127.0.0.1:36254][indices:data/read/search[phase/query]]]\n\tat org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:459)\n\tat org.elasticsearch.action.search.AbstractSearchAsyncAction.onShardFailure(AbstractSearchAsyncAction.java:408)\n\tat org.elasticsearch.action.search.AbstractSearchAsyncAction.access$000(AbstractSearchAsyncAction.java:70)\n\tat org.elasticsearch.action.search.AbstractSearchAsyncAction$1.onFailure(AbstractSearchAsyncAction.java:275)\n\tat
The text was updated successfully, but these errors were encountered: