Github user jvwing commented on the issue:
https://github.com/apache/nifi/pull/1537
I also recommend running a full build with `mvn clean install
-Pcontrib-check`. It looks like several of the QueryDatabaseTableTest unit
tests are failing:
>Tests run: 11, Failures: 8, Errors: 0, Skipped: 0, Time elapsed: 1.006 sec
<<< FAILURE! - in org.apache.nifi.processors.standard.QueryDatabaseTableTest
testWithRuntimeException(org.apache.nifi.processors.standard.QueryDatabaseTableTest)
Time elapsed: 0.388 sec <<< FAILURE!
java.lang.AssertionError:
org.apache.nifi.processor.exception.FlowFileHandlingException: Cannot commit
session because the following FlowFiles have not been removed or transferred:
[0]
My quick take is that the happy-path works fine with your code, but paths
that do not result in a flowfile output are failing because the session is not
cleaned up. How about moving the call to `session.putAttribute` down to line
~300 by where RESULT_ROW_COUNT is added? A viable output flowfile is being
formatted here, and being in the same neighborhood with other attribute
assignments might be easier to understand. What do you think?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---