Github user mattyb149 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/1358#discussion_r93989378
--- Diff:
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/SplitText.java
---
@@ -288,7 +290,7 @@ public void process(InputStream in) throws IOException {
int fragmentIndex = 1; // set to 1 to preserve the existing
behavior *only*. Perhaps should be deprecated to follow the 0,1,2... scheme
String fragmentId = UUID.randomUUID().toString();
- if (computedSplitsInfo.size() == 0) {
+ if ((computedSplitsInfo.size() == 0) && (headerFlowFile != null)) {
--- End diff --
That might not be a bad thing to recognize empty files (except for
header)...
---
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.
---