Mark Payne created NIFI-10767:
---------------------------------

             Summary: SyslogReader should not throw Exceptions on empty/blank 
lines
                 Key: NIFI-10767
                 URL: https://issues.apache.org/jira/browse/NIFI-10767
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
            Reporter: Mark Payne


If the SyslogReader encounters an empty line, it throws an Exception:
{code:java}
if (StringUtils.isBlank(line)) {
    // while an empty string is an error
    throw new MalformedRecordException("Encountered a blank message!");
} {code}
Often flows are built that use MergeContent or split data apart, etc. that can 
result in inadvertently including an empty line between messages. There's no 
need to throw an Exception in this case. Instead, we should simply skip over 
the empty line. Perhaps a debug log should be emitted but not an Exception.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to