From d143d26bbd14086ae3444f1616626d2227ec2c13 Mon Sep 17 00:00:00 2001 From: javanna Date: Thu, 22 Mar 2018 17:11:49 +0100 Subject: [PATCH] Adapt to RecoveryResponse change upstream See https://github.com/elastic/elasticsearch/pull/28878 , RecoveryResponse doesn't accept the detailed boolean flag anymore in its constructor as it was unused. Original commit: elastic/x-pack-elasticsearch@d96df3448e13a93f7ba4d48eeebe8c8520cf6287 --- .../collector/indices/IndexRecoveryCollectorTests.java | 2 +- .../collector/indices/IndexRecoveryMonitoringDocTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/collector/indices/IndexRecoveryCollectorTests.java b/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/collector/indices/IndexRecoveryCollectorTests.java index 3a87fa5a873..47504736d26 100644 --- a/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/collector/indices/IndexRecoveryCollectorTests.java +++ b/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/collector/indices/IndexRecoveryCollectorTests.java @@ -123,7 +123,7 @@ public class IndexRecoveryCollectorTests extends BaseCollectorTestCase { recoveryStates.put("_index_" + i, singletonList(recoveryState)); } final RecoveryResponse recoveryResponse = - new RecoveryResponse(randomInt(), randomInt(), randomInt(), randomBoolean(), recoveryStates, emptyList()); + new RecoveryResponse(randomInt(), randomInt(), randomInt(), recoveryStates, emptyList()); final RecoveryRequestBuilder recoveryRequestBuilder = spy(new RecoveryRequestBuilder(mock(ElasticsearchClient.class), RecoveryAction.INSTANCE)); diff --git a/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/collector/indices/IndexRecoveryMonitoringDocTests.java b/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/collector/indices/IndexRecoveryMonitoringDocTests.java index eb135ea5938..b36a8c8db0b 100644 --- a/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/collector/indices/IndexRecoveryMonitoringDocTests.java +++ b/plugin/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/collector/indices/IndexRecoveryMonitoringDocTests.java @@ -108,7 +108,7 @@ public class IndexRecoveryMonitoringDocTests extends BaseMonitoringDocTestCase