mirror of https://github.com/apache/nifi.git
NIFI-7722 Catching 'Throwable' instead of 'Exception' in 'NodeHttpRequest.run()' to make sure subsequent 'Object.notify()' (when request replication has completed) is not missed out even if an 'Error' is thrown.
This commit is contained in:
parent
9e1e17d3f3
commit
3e18d5b236
|
@ -837,10 +837,10 @@ public class ThreadPoolRequestReplicator implements RequestReplicator {
|
|||
logger.debug("Replicating request {} {} to {}", method, uri.getPath(), nodeId);
|
||||
|
||||
nodeResponse = replicateRequest(request, nodeId, uri, requestId, clusterResponse);
|
||||
} catch (final Exception e) {
|
||||
nodeResponse = new NodeResponse(nodeId, method, uri, e);
|
||||
logger.warn("Failed to replicate request {} {} to {} due to {}", method, uri.getPath(), nodeId, e.toString());
|
||||
logger.warn("", e);
|
||||
} catch (final Throwable t) {
|
||||
nodeResponse = new NodeResponse(nodeId, method, uri, t);
|
||||
logger.warn("Failed to replicate request {} {} to {} due to {}", method, uri.getPath(), nodeId, t.toString());
|
||||
logger.warn("", t);
|
||||
}
|
||||
|
||||
if (callback != null) {
|
||||
|
|
Loading…
Reference in New Issue