mirror of https://github.com/apache/nifi.git
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:
parent
d25efb385c
commit
fc01e0ccf4
|
@ -517,7 +517,8 @@ public class RouteText extends AbstractProcessor {
|
||||||
relationship = REL_NO_MATCH;
|
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);
|
final Group group = getGroup(matchLine, groupPattern);
|
||||||
appendLine(session, flowFileMap, relationship, originalFlowFile, line, charset, group);
|
appendLine(session, flowFileMap, relationship, originalFlowFile, line, charset, group);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue