Skip to content

Commit 6bc0c7b

Browse files
[7.x][ML] Reduce log noise in BaseMlIntegTestCase (#65675) (#65682)
Tests inheriting `BaseMlIntegTestCase` have noisy logs with the error `No processor type exists with name [...]`. Those are caused because of loaded templates that need the `IngestCommonPlugin` loaded. This commit adds a test dependency to the `ingest-common` module and loads `IngestCommonPlugin` in `BaseMlIntegTestCase` to reduce such noise. Backport of #65675
1 parent 38cc976 commit 6bc0c7b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

x-pack/plugin/ml/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ dependencies {
5252
testImplementation project(path: xpackModule('ilm'), configuration: 'default')
5353
compileOnly project(path: xpackModule('autoscaling'), configuration: 'default')
5454
testImplementation project(path: xpackModule('data-streams'), configuration: 'default')
55+
testImplementation project(':modules:ingest-common')
5556
// This should not be here
5657
testImplementation project(path: xpackModule('security'), configuration: 'testArtifacts')
5758

x-pack/plugin/ml/src/test/java/org/elasticsearch/xpack/ml/support/BaseMlIntegTestCase.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.elasticsearch.common.unit.TimeValue;
2727
import org.elasticsearch.index.reindex.ReindexPlugin;
2828
import org.elasticsearch.indices.recovery.RecoveryState;
29+
import org.elasticsearch.ingest.common.IngestCommonPlugin;
2930
import org.elasticsearch.license.LicenseService;
3031
import org.elasticsearch.persistent.PersistentTasksClusterService;
3132
import org.elasticsearch.plugins.Plugin;
@@ -123,6 +124,7 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
123124
return Arrays.asList(
124125
LocalStateMachineLearning.class,
125126
CommonAnalysisPlugin.class,
127+
IngestCommonPlugin.class,
126128
ReindexPlugin.class,
127129
// ILM is required for .ml-state template index settings
128130
IndexLifecycle.class,

0 commit comments

Comments
 (0)