From e3fee3e6df4fb833d614935f008e17da99cbed1b Mon Sep 17 00:00:00 2001 From: Dimitris Athanasiou Date: Tue, 3 Nov 2020 19:53:17 +0200 Subject: [PATCH] [ML] Ignore _doc_count field in data frame analytics (#64541) This field is added from version 7.11 onwards. We are adding it to the list of ignored fields for data frame analytics in 7.10 to avoid failing to start an outlier detection job in a mixed cluster environment. Relates #64503 --- .../xpack/ml/dataframe/extractor/ExtractedFieldsDetector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/dataframe/extractor/ExtractedFieldsDetector.java b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/dataframe/extractor/ExtractedFieldsDetector.java index 0904570d4db..210a26c9c6e 100644 --- a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/dataframe/extractor/ExtractedFieldsDetector.java +++ b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/dataframe/extractor/ExtractedFieldsDetector.java @@ -59,7 +59,7 @@ public class ExtractedFieldsDetector { */ private static final List IGNORE_FIELDS = Arrays.asList("_id", "_field_names", "_index", "_parent", "_routing", "_seq_no", "_source", "_type", "_uid", "_version", "_feature", "_ignored", DestinationIndex.INCREMENTAL_ID, - "_data_stream_timestamp"); + "_data_stream_timestamp", "_doc_count"); private final DataFrameAnalyticsConfig config; private final int docValueFieldsLimit;