Skip to content

Commit

Permalink
revert back to sync request
Browse files Browse the repository at this point in the history
  • Loading branch information
will-hwang committed Jan 8, 2025
1 parent 4ec85ef commit 602a30a
Showing 1 changed file with 3 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1284,19 +1284,9 @@ protected void waitForClusterHealthGreen(final String numOfNodes) throws IOExcep
Request waitForGreen = new Request("GET", "/_cluster/health");
waitForGreen.addParameter("wait_for_nodes", numOfNodes);
waitForGreen.addParameter("wait_for_status", "green");
waitForGreen.addParameter("cluster_manager_timeout", "200s");
waitForGreen.addParameter("timeout", "200s");
client().performRequestAsync(waitForGreen, new ResponseListener() {
@Override
public void onSuccess(Response response) {
logger.info("Successful response" + response.toString());
}

@Override
public void onFailure(Exception e) {
logger.info("Request failed with " + e);
}
});
waitForGreen.addParameter("cluster_manager_timeout", "60s");
waitForGreen.addParameter("timeout", "60s");
client().performRequest(waitForGreen);
}

/**
Expand Down

0 comments on commit 602a30a

Please sign in to comment.