[ML] Load data streams plugin for ML internal cluster tests (#63560)
Now that deprecation logs get indexed to a data stream, if we do not load the data stream plugin in our tests and any test generates a deprecation log message then millions of exceptions get logged, slowing down the tests to the extent that they can fail. This change loads the data streams plugin during the ML internal cluster tests. (It should already be present in external cluster tests.) Fixes #63548
This commit is contained in:
parent
5fe51b1bf4
commit
3f210e2620
|
@ -50,6 +50,7 @@ dependencies {
|
|||
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
||||
testImplementation project(path: xpackModule('core'), configuration: 'testArtifacts')
|
||||
testImplementation project(path: xpackModule('ilm'), configuration: 'default')
|
||||
testImplementation project(path: xpackModule('data-streams'), configuration: 'default')
|
||||
// This should not be here
|
||||
testImplementation project(path: xpackModule('security'), configuration: 'testArtifacts')
|
||||
|
||||
|
|
|
@ -58,6 +58,7 @@ import org.elasticsearch.xpack.core.ml.job.config.Detector;
|
|||
import org.elasticsearch.xpack.core.ml.job.config.Job;
|
||||
import org.elasticsearch.xpack.core.ml.job.config.JobState;
|
||||
import org.elasticsearch.xpack.core.ml.job.process.autodetect.state.DataCounts;
|
||||
import org.elasticsearch.xpack.datastreams.DataStreamsPlugin;
|
||||
import org.elasticsearch.xpack.ilm.IndexLifecycle;
|
||||
import org.elasticsearch.xpack.ml.LocalStateMachineLearning;
|
||||
import org.elasticsearch.xpack.ml.MachineLearning;
|
||||
|
@ -124,7 +125,9 @@ public abstract class BaseMlIntegTestCase extends ESIntegTestCase {
|
|||
CommonAnalysisPlugin.class,
|
||||
ReindexPlugin.class,
|
||||
// ILM is required for .ml-state template index settings
|
||||
IndexLifecycle.class);
|
||||
IndexLifecycle.class,
|
||||
// Deprecation warnings go to a data stream, if we ever cause a deprecation warning the data streams plugin is required
|
||||
DataStreamsPlugin.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue