diff --git a/src/main/java/org/elasticsearch/search/SearchService.java b/src/main/java/org/elasticsearch/search/SearchService.java index 23dd0b8b14d..94c5c72b10a 100644 --- a/src/main/java/org/elasticsearch/search/SearchService.java +++ b/src/main/java/org/elasticsearch/search/SearchService.java @@ -824,7 +824,7 @@ public class SearchService extends AbstractLifecycleComponent { return new TerminationHandle() { @Override public void awaitTermination() throws InterruptedException { - latch.wait(); + latch.await(); } }; }