Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,8 @@ private void deleteAsyncSearchIfPresent(Map<String, Object> map) throws IOExcept
return;
}

// Make sure the .async-search system index is green before deleting it
try {
ensureGreen(".async-search");
} catch (Exception ignore) {
// the index may not exist
}
awaitIndexExists(".async-search");
ensureGreen(".async-search");

Response response = getRestClient().performRequest(new Request("DELETE", "/_async_search/" + id));
HttpEntity entity = response.getEntity();
Expand Down
Loading