NIFI-13198 Updated RouteText to skip writing to auto-terminated relationships

This closes #8939

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Jim Steinebrey 2024-06-07 15:38:52 -04:00 committed by exceptionfactory
parent d25efb385c
commit fc01e0ccf4
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -517,7 +517,8 @@ public class RouteText extends AbstractProcessor {
relationship = REL_NO_MATCH;
}
if (relationship != null) {
// If the target relationship (usually REL_NO_MATCH) is auto-terminated, don't bother creating the flowfile or writing to it.
if (relationship != null && !context.isAutoTerminated(relationship)) {
final Group group = getGroup(matchLine, groupPattern);
appendLine(session, flowFileMap, relationship, originalFlowFile, line, charset, group);
}