jrsteinebrey commented on code in PR #8939:
URL: https://github.com/apache/nifi/pull/8939#discussion_r1643091531
##########
nifi-extension-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/RouteText.java:
##########
@@ -549,7 +550,9 @@ public void process(final InputStream in) throws
IOException {
FlowFile flowFile = originalFlowFile;
logger.info("Routing {} to {}", flowFile, REL_ORIGINAL);
session.getProvenanceReporter().route(originalFlowFile, REL_ORIGINAL);
- flowFile = session.putAttribute(flowFile, ROUTE_ATTRIBUTE_KEY,
REL_ORIGINAL.getName());
+ if (!context.isAutoTerminated(REL_ORIGINAL)) {
+ flowFile = session.putAttribute(flowFile, ROUTE_ATTRIBUTE_KEY,
REL_ORIGINAL.getName());
+ }
Review Comment:
@exceptionfactory I removed the isAutoTerminated check for REL_ORIGINAL
and retained the conditional for the content-based processing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]