[ 
https://issues.apache.org/jira/browse/NIFI-4073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16050300#comment-16050300
 ] 

ASF GitHub Bot commented on NIFI-4073:
--------------------------------------

GitHub user pvillard31 opened a pull request:

    https://github.com/apache/nifi/pull/1916

    NIFI-4073 - fix duplicated stack trace

    Thank you for submitting a contribution to Apache NiFi.
    
    In order to streamline the review of the contribution we ask you
    to ensure the following steps have been taken:
    
    ### For all changes:
    - [X] Is there a JIRA ticket associated with this PR? Is it referenced 
         in the commit message?
    
    - [X] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number 
you are trying to resolve? Pay particular attention to the hyphen "-" character.
    
    - [X] Has your PR been rebased against the latest commit within the target 
branch (typically master)?
    
    - [X] Is your initial contribution a single, squashed commit?
    
    ### For code changes:
    - [X] Have you ensured that the full suite of tests is executed via mvn 
-Pcontrib-check clean install at the root nifi folder?
    
    ### Note:
    Please ensure that once the PR is submitted, you check travis-ci for build 
issues and submit an update to your PR as soon as possible.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pvillard31/nifi NIFI-4073

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/1916.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1916
    
----
commit d5512207948dc84f4b5e3b09e77e862bbd2f7b64
Author: Pierre Villard <[email protected]>
Date:   2017-06-15T10:32:42Z

    NIFI-4073 - fix duplicated stack trace

----


> 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