[
https://issues.apache.org/jira/browse/NIFI-5652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16634231#comment-16634231
]
Mark Payne commented on NIFI-5652:
----------------------------------
There does seem to be a bug in that processor, if the log level is not enabled.
So if it logs at INFO and the log level is not enabled for INFO, the bug is
triggered. It looks like maybe it was intended to be an optimization, by
pulling a batch and transferring them to success. But in doing so, it ignored
the original FlowFile that was pulled and only tries to transfer the batch...
That optimization should be removed, as the logic is also not correct... Since
the Log Level is determined by Expression Language evaluated against
Attributes, it should never transfer a chunk of FlowFiles, because one of the
FlowFiles in that batch may indicate that a lower (or higher) log level is to
be used...
> LogMessage emits "transfer relationship not specified" error
> ------------------------------------------------------------
>
> Key: NIFI-5652
> URL: https://issues.apache.org/jira/browse/NIFI-5652
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.7.1
> Environment: 3 nodes cluster of CentOS 7.4 servers; JRE 1.8
> Reporter: Takeshi Koya
> Priority: Minor
>
> Hi, all NiFi developers and users.
> I upgraded our staging cluster from 1.5 to 1.7.1 recently,
> but I am in trouble with LogMessage errors.
> The combination of a log level and a bulletin level that is higher than the
> log level seems to bring about the following "transfer relationship not
> specified" error.
> {code:java}
> 2018-10-02 00:00:00,442 ERROR [Timer-Driven Process Thread-7]
> o.a.nifi.processors.standard.LogMessage LogMessage[id=...] LogMessage[id=...]
> failed to process session due to
> org.apache.nifi.processor.exception.FlowFileHandlingException:
> StandardFlowFileRecord[uuid=...,claim=StandardContentClaim
> [resourceClaim=StandardResourceClaim[id=1538373600261-460, container=default,
> section=460], offset=7822560,
> length=8434],offset=0,name=potaufeu_topics_static_ip-172-19-25-78_20181001162829878.tar.gz,size=8434]
> transfer relationship not specified; Processor Administratively Yielded for
> 1 sec: org.apache.nifi.processor.exception.FlowFileHandlingException:
> StandardFlowFileRecord[uuid=...,claim=StandardContentClaim
> [resourceClaim=StandardResourceClaim[id=1538373600261-460, container=default,
> section=460], offset=7822560,
> length=8434],offset=0,name=potaufeu_topics_static_ip-172-19-25-78_20181001162829878.tar.gz,size=8434]
> transfer relationship not specified
> {code}
> Errors disappear if we make a bulletin level equal to or lower than a log
> level.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)