[
https://issues.apache.org/jira/browse/NIFI-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15118084#comment-15118084
]
ASF GitHub Bot commented on NIFI-1200:
--------------------------------------
Github user markap14 commented on the pull request:
https://github.com/apache/nifi/pull/191#issuecomment-175240613
@olegz I'm seeing a bunch of checkstyle violations:
[WARNING]
src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java[24:15]
(imports) UnusedImports: Unused import - org.mockito.Matchers.argThat.
[WARNING]
src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java[25:15]
(imports) UnusedImports: Unused import - org.mockito.Mockito.mock.
[WARNING]
src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java[26:15]
(imports) UnusedImports: Unused import - org.mockito.Mockito.verify.
[WARNING]
src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java[27:15]
(imports) UnusedImports: Unused import - org.mockito.Mockito.when.
[WARNING]
src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java[52:8]
(imports) UnusedImports: Unused import - org.mockito.ArgumentMatcher.
[WARNING]
src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java[58:8]
(imports) UnusedImports: Unused import -
ch.qos.logback.classic.spi.LoggingEvent.
[WARNING]
src/test/java/org/apache/nifi/controller/repository/TestFileSystemRepository.java[59:8]
(imports) UnusedImports: Unused import - ch.qos.logback.core.Appender.
Otherwise all looks good.
> 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 [email protected]
> 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)