nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NIFI-1200) FileSystemRepository saturates CPU when archive directories are empty
Date Tue, 26 Jan 2016 21:41:40 GMT

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

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

Commit 0d45f21f4ba59ab65105255b3c93eeb869f8306f in nifi's branch refs/heads/master from [~markap14]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=0d45f21 ]

Merge branch 'NIFI-1200' of https://github.com/olegz/nifi into NIFI-1200


> FileSystemRepository saturates CPU when archive directories are empty
> ---------------------------------------------------------------------
>
>                 Key: NIFI-1200
>                 URL: https://issues.apache.org/jira/browse/NIFI-1200
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 0.3.0
>            Reporter: Oleg Zhurakousky
>            Assignee: Oleg Zhurakousky
>            Priority: Minor
>             Fix For: 0.5.0
>
>
> Was reported in the dev thread by adamonduty@gmail.com
> The piece of code responsible is 
> {code}
> for (int i = 0; i < SECTIONS_PER_CONTAINER; i++) {
> . . .
>    if (!Files.exists(archive)) {
>         continue;
>    }
> . . . 
> }
> {code}
> . .  where continue happens without any delay. 
> It was also confirmed by Adam that small Thread.slleep(..) takes care of the problem.
What puzzles me is that the loop itself has a finite end so, need to look how the parent operation
is invoked.  



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

Mime
View raw message