Should be limiting health request to concreteIndices.

Closes #4296.
This commit is contained in:
Andrew Raines 2013-11-28 21:13:17 -06:00
parent d2f91173b7
commit 8f4c8e0d4a
1 changed files with 1 additions and 2 deletions

View File

@ -64,9 +64,8 @@ public class RestIndicesAction extends BaseRestHandler {
@Override
public void onResponse(final ClusterStateResponse clusterStateResponse) {
final String[] concreteIndices = clusterStateResponse.getState().metaData().concreteIndicesIgnoreMissing(indices);
ClusterHealthRequest clusterHealthRequest = Requests.clusterHealthRequest(indices);
ClusterHealthRequest clusterHealthRequest = Requests.clusterHealthRequest(concreteIndices);
clusterHealthRequest.local(request.paramAsBoolean("local", clusterHealthRequest.local()));
clusterHealthRequest.indices(indices);
client.admin().cluster().health(clusterHealthRequest, new ActionListener<ClusterHealthResponse>() {
@Override
public void onResponse(final ClusterHealthResponse clusterHealthResponse) {