From 614aef2527044e36a1697b2a01cbf962be46a853 Mon Sep 17 00:00:00 2001 From: Hendrik Muhs Date: Mon, 22 May 2017 08:48:33 +0200 Subject: [PATCH] Pass down the provided timeout. --- .../org/elasticsearch/persistent/PersistentTasksService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/persistent/PersistentTasksService.java b/server/src/main/java/org/elasticsearch/persistent/PersistentTasksService.java index cf416623bcb..220f55aff33 100644 --- a/server/src/main/java/org/elasticsearch/persistent/PersistentTasksService.java +++ b/server/src/main/java/org/elasticsearch/persistent/PersistentTasksService.java @@ -180,7 +180,7 @@ public class PersistentTasksService extends AbstractComponent { public void onTimeout(TimeValue timeout) { listener.onFailure(new IllegalStateException("timed out after " + timeout)); } - }, clusterState -> predicate.test(clusterState.metaData().custom(PersistentTasksCustomMetaData.TYPE))); + }, clusterState -> predicate.test(clusterState.metaData().custom(PersistentTasksCustomMetaData.TYPE)), timeout); } }