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:
Tamas Palfy 2020-08-10 20:06:38 +02:00 committed by markap14
parent 9e1e17d3f3
commit 3e18d5b236
1 changed files with 4 additions and 4 deletions

View File

@ -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) {