fix wrong REST response generation of cluster state
This commit is contained in:
parent
91344170ee
commit
fd9266dbc6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue