From 736c7285d4ca8bef1afe684924ca062e22c823bd Mon Sep 17 00:00:00 2001 From: Dimitris Athanasiou Date: Thu, 11 Apr 2019 11:29:51 +0300 Subject: [PATCH] [ML] Fix scroll size comparison in DatafeedUpdate.isNoop (#41056) (#41079) Note this does not affect users as the method is only used in tests. --- .../elasticsearch/xpack/core/ml/datafeed/DatafeedUpdate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/datafeed/DatafeedUpdate.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/datafeed/DatafeedUpdate.java index 78b4e4ec7c2..ccbb5161972 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/datafeed/DatafeedUpdate.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/datafeed/DatafeedUpdate.java @@ -381,7 +381,7 @@ public class DatafeedUpdate implements Writeable, ToXContentObject { && (queryDelay == null || Objects.equals(queryDelay, datafeed.getQueryDelay())) && (indices == null || Objects.equals(indices, datafeed.getIndices())) && (queryProvider == null || Objects.equals(queryProvider.getQuery(), datafeed.getQuery())) - && (scrollSize == null || Objects.equals(scrollSize, datafeed.getQueryDelay())) + && (scrollSize == null || Objects.equals(scrollSize, datafeed.getScrollSize())) && (aggProvider == null || Objects.equals(aggProvider.getAggs(), datafeed.getAggregations())) && (scriptFields == null || Objects.equals(scriptFields, datafeed.getScriptFields())) && (delayedDataCheckConfig == null || Objects.equals(delayedDataCheckConfig, datafeed.getDelayedDataCheckConfig()))