You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "mattyb149 (via GitHub)" <gi...@apache.org> on 2023/08/14 21:23:52 UTC
[GitHub] [nifi] mattyb149 opened a new pull request, #7608: NIFI-11789: Support setting fragment.count on last FlowFile when Output Batch Size is set in ExecuteSQL processors
mattyb149 opened a new pull request, #7608:
URL: https://github.com/apache/nifi/pull/7608
# Summary
[NIFI-11789](https://issues.apache.org/jira/browse/NIFI-11789) This PR changes AbstractExecuteSQL in order to attempt to try to set the `fragment.count` attribute on the "last" FlowFile to be committed to the session in `onTrigger`. It introduces some extra concepts that aren't consistent with the intended design of ProcessSession, and currently doesn't work when the query returns multiple result sets. That would require the DB driver to support a handful of methods and configurations that not all of them do (notably Derby).
Perhaps it is too much outside the Process Session design principles to try and make this work. I a user NEEDS Output Batch Size it's because they have too much data to send downstream at once, which makes a downstream Merge seem like a moot point as the bottleneck would presumably show up there. Perhaps someone will do some performance metrics on how the two types of flows perform, one with Output Batch Size set and one without.
Until more discussion and pathfinding is done, this PR is in draft status.
# Tracking
Please complete the following tracking steps prior to pull request creation.
### Issue Tracking
- [x] [Apache NiFi Jira](https://issues.apache.org/jira/browse/NIFI) issue created
### Pull Request Tracking
- [x] Pull Request title starts with Apache NiFi Jira issue number, such as `NIFI-00000`
- [x] Pull Request commit message starts with Apache NiFi Jira issue number, as such `NIFI-00000`
### Pull Request Formatting
- [x] Pull Request based on current revision of the `main` branch
- [x] Pull Request refers to a feature branch with one commit containing changes
# Verification
Please indicate the verification steps performed prior to pull request creation.
### Build
- [ ] Build completed using `mvn clean install -P contrib-check`
- [x] JDK 17
### Licensing
- [ ] New dependencies are compatible with the [Apache License 2.0](https://apache.org/licenses/LICENSE-2.0) according to the [License Policy](https://www.apache.org/legal/resolved.html)
- [ ] New dependencies are documented in applicable `LICENSE` and `NOTICE` files
### Documentation
- [ ] Documentation formatting appears as expected in rendered files
--
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: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [nifi] joewitt commented on pull request #7608: NIFI-11789: Support setting fragment.count on last FlowFile when Output Batch Size is set in ExecuteSQL processors
Posted by "joewitt (via GitHub)" <gi...@apache.org>.
joewitt commented on PR #7608:
URL: https://github.com/apache/nifi/pull/7608#issuecomment-1742160417
@mattyb149 Can you elaborate on how this doesn't align/work with ProcessSession concepts?
--
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: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] NIFI-11789: Support setting fragment.count on last FlowFile when Output Batch Size is set in ExecuteSQL processors [nifi]
Posted by "mattyb149 (via GitHub)" <gi...@apache.org>.
mattyb149 closed pull request #7608: NIFI-11789: Support setting fragment.count on last FlowFile when Output Batch Size is set in ExecuteSQL processors
URL: https://github.com/apache/nifi/pull/7608
--
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: issues-unsubscribe@nifi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org