nifi-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (Jira)" <>
Subject [jira] [Commented] (NIFI-6064) MockComponentLog misplaces reported exceptions
Date Tue, 18 Feb 2020 20:31:00 GMT


ASF subversion and git services commented on NIFI-6064:

Commit fe416d1ea0e1b7f15c1fdf8884d10f280d126f4e in nifi's branch refs/heads/master from karthik-kadajji
[;h=fe416d1 ]

NIFI-6064 MockComponentLog misplaces reported exceptions

Signed-off-by: Pierre Villard <>

This closes #4061.

> MockComponentLog misplaces reported exceptions
> ----------------------------------------------
>                 Key: NIFI-6064
>                 URL:
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.8.0, 1.9.0
>            Reporter: Sergei Zhirikov
>            Assignee: karthik kadajji
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
> When MockComponentLog.error(String, Throwable) is called, the message is forwarded to
CapturingLogger.error(String, Object, Object), which treats the Throwable passed as the last
parameter as a regular message parameter and passes it as such to the LogMessage constructor.
As the result, the Throwable ends up as the last element in LogMessage.args, instead of the
LogMessage.throwable field, where it would be more appropriate.
> Note: I have only tested this with 1.8.0, but the relevant code in the master branch
is the same, so I assume the issue applies to the latest version as well.

This message was sent by Atlassian Jira

View raw message