fix wrong REST response generation of cluster state

This commit is contained in:
kimchy 2010-09-22 16:03:42 +02:00
parent 91344170ee
commit fd9266dbc6
1 changed files with 4 additions and 1 deletions

View File

@ -229,7 +229,7 @@ public class RestClusterStateAction extends BaseRestHandler {
builder.endArray();
builder.endObject();
}
builder.endObject();
builder.endArray();
}
@ -252,6 +252,9 @@ public class RestClusterStateAction extends BaseRestHandler {
}
@Override public void onFailure(Throwable e) {
if (logger.isDebugEnabled()) {
logger.debug("failed to handle cluster state", e);
}
try {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
} catch (IOException e1) {