[ 
https://issues.apache.org/jira/browse/NIFI-408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14376511#comment-14376511
 ] 

ASF subversion and git services commented on NIFI-408:
------------------------------------------------------

Commit d6408046bca336e4a11a9c123eef38139f05af78 in incubator-nifi's branch 
refs/heads/develop from [~markap14]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-nifi.git;h=d640804 ]

NIFI-408: Instead of yielding for 100 milliseconds when data is not available, 
Root Group Port should poll with a max wait time of 100 milliseconds and if no 
data is available return without yielding.


> Root Group Ports yield for too long
> -----------------------------------
>
>                 Key: NIFI-408
>                 URL: https://issues.apache.org/jira/browse/NIFI-408
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Mark Payne
>             Fix For: 0.1.0
>
>         Attachments: 
> 0001-NIFI-408-Instead-of-yielding-for-100-milliseconds-wh.patch
>
>
> Currently if a root group has no connections waiting to be serviced, it 
> yields for 100 milliseconds. It should instead yield for the "bored" 
> duration, and rather than calling poll() and checking for null to determine 
> that it has no work, it should call poll(10, TimeUnit.MILLISECONDS) or 
> something like that so that it is no too aggressive in yielding



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to