[
https://issues.apache.org/jira/browse/NIFI-5629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16629004#comment-16629004
]
ASF GitHub Bot commented on NIFI-5629:
--------------------------------------
GitHub user adyoun2 opened a pull request:
https://github.com/apache/nifi/pull/3033
NIFI-5629 GetFile vast listing performance
See related PR. When the number of files to pickup becomes a certain size,
the OS can become slow performing the listing, so re-use this listing multiple
times.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/adyoun2/nifi
NIFI-5629-GetFile-vast-directory-re-use-listing
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/3033.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3033
----
commit d06534647b7d2aef2069dfebebf4bea3651a8b69
Author: adyoun2 <adam.y@...>
Date: 2018-09-26T16:14:55Z
NIFI-5629 GetFile continues to use the same listing stream until 10000
files or no files remain
----
> GetFile becomes slow listing vast directories
> ---------------------------------------------
>
> Key: NIFI-5629
> URL: https://issues.apache.org/jira/browse/NIFI-5629
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Affects Versions: 1.6.0
> Reporter: Adam
> Priority: Minor
>
> GetFile repeatedly lists entire directories before applying batching, meaning
> for vast directories it spends a long time listing directories.
>
> Pull request to follow.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)