[
https://issues.apache.org/jira/browse/NIFI-421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14384096#comment-14384096
]
Mark Payne commented on NIFI-421:
---------------------------------
Toivo,
So the part about "or even deadlock" is interesting. I did not realize that
could be a possibility... the part about blocking I do realize and that is in
fact the intent. I would be very curious to find out under what conditions it
may deadlock?
I would not push anything to a queue because that really would end up just
buffering the data in memory (which we always try to avoid if at all possible)
-- and at the point that the queue fills up leaves us in the same spot of
having to wait to read from the Process.
I think I would lean toward just documenting this behavior, indicating that
depending on the environment in which this processor is run, if the output
queue fills up, it could cause the process to block, or even deadlock. I've
never seen this behavior in Linux or Windows, for what it's worth.
Joe: you created this ticket. Any other thoughts here?
Thanks
-Mark
> ExecuteProcess does not honor back pressure setting
> ---------------------------------------------------
>
> Key: NIFI-421
> URL: https://issues.apache.org/jira/browse/NIFI-421
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Joseph Witt
> Assignee: Toivo Adams
> Labels: beginner
> Fix For: 0.1.0
>
> Attachments: TestExecuteProcess.java
>
>
> ExecuteProcess does not pay attention to back pressure settings when
> operating on a continuous stream of output. It needs to be able to do so.
> It should also document or make optional its behavior in the event of a back
> pressure condition. One it can kill the process it is executing or two it
> can simply stop reading from the output stream. There may be valid cases for
> both options.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)