You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Payne (Jira)" <ji...@apache.org> on 2022/01/06 18:51:00 UTC
[jira] [Created] (NIFI-9546) PutTCP / PutUDP are inefficient
Mark Payne created NIFI-9546:
--------------------------------
Summary: PutTCP / PutUDP are inefficient
Key: NIFI-9546
URL: https://issues.apache.org/jira/browse/NIFI-9546
Project: Apache NiFi
Issue Type: Bug
Components: Extensions
Reporter: Mark Payne
Assignee: Mark Payne
The PutTCP and PutUDP processors do not use the {{@SupportsBatching}} annotation, which can make a huge different in performance. Additionally, they both are annotated with {{@TriggerWhenEmpty}} but then do nothing when they have no incoming FlowFiles, which wastes a lot of resources. And the shutdown routine waits 2 seconds to shutdown the processor "gracefully" meaning it'll wait for any additional threads that come in to complete. However we know that there will be no additional threads, so we should stop waiting those 2 seconds - this slows down the unit tests significantly, also.
Unit tests also have a lot of seemingly arbitrary sleep() statements that don't appear to have any value.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)