Pierre Villard created NIFI-4073:
------------------------------------

             Summary: Duplicated stack trace in ThreadPoolRequestReplicator
                 Key: NIFI-4073
                 URL: https://issues.apache.org/jira/browse/NIFI-4073
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 1.3.0
            Reporter: Pierre Villard
            Assignee: Pierre Villard
            Priority: Trivial


There is a duplicated stack trace due to the following part.

{code:title=ThreadPoolRequestReplicator.java|borderStyle=solid}
try {
    // create and send the request
    final WebResource.Builder resourceBuilder = createResourceBuilder();
    final String requestId = headers.get("x-nifi-request-id");

    logger.debug("Replicating request {} {} to {}", method, uri.getPath(), 
nodeId);
    nodeResponse = replicateRequest(resourceBuilder, nodeId, method, uri, 
requestId, headers, 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);
    logger.warn("", e);
}
{code}

It just requires to use {{e.toString()}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to