Oleg Zhurakousky created NIFI-1447:
--------------------------------------
Summary: Improve exception logging for Processors
Key: NIFI-1447
URL: https://issues.apache.org/jira/browse/NIFI-1447
Project: Apache NiFi
Issue Type: Bug
Reporter: Oleg Zhurakousky
Assignee: Oleg Zhurakousky
Fix For: 0.5.0
Unfortunately while the title says _"improve"_, I am logging it as a BUG for
the following reasons.
A client reported an issue with one of the processors where the only visible
message in both _bulletin and logs_ is the message produced by ProcessLogger
which does not seem to log a full stack trace. A typical pattern in current
processor implementation is to have a significant code in _onTrigger()_ method
to be wrapped in _try/catch_ where exception is logged and then re-thrown.
Unfortunately it's not the case for this particular processor. As a result it
is impossible to determine the cause of the root problem.
While immediate solution is to modify the specific Processor by wrapping its
significant code in _try/catch_ a better solution would be to improve
ProcessLogger to log full stack trace whenever there is an error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)