A failure during the response construction could cause a Node Operation never to return
This commit is contained in:
parent
a4814c2f69
commit
b65d07b495
|
@ -214,7 +214,15 @@ public abstract class TransportNodesOperationAction<Request extends NodesOperati
|
|||
}
|
||||
|
||||
private void finishHim() {
|
||||
listener.onResponse(newResponse(request, responses));
|
||||
Response finalResponse;
|
||||
try {
|
||||
finalResponse = newResponse(request, responses);
|
||||
} catch (Throwable t) {
|
||||
logger.debug("failed to combine responses from nodes", t);
|
||||
listener.onFailure(t);
|
||||
return;
|
||||
}
|
||||
listener.onResponse(finalResponse);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue