You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "marco polo (JIRA)" <ji...@apache.org> on 2017/11/30 12:18:00 UTC
[jira] [Comment Edited] (MINIFICPP-336) With default GetFile
settings dot files are not getting ignored on linux systems as they should
[ https://issues.apache.org/jira/browse/MINIFICPP-336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16272589#comment-16272589 ]
marco polo edited comment on MINIFICPP-336 at 11/30/17 12:17 PM:
-----------------------------------------------------------------
offending code is here:
{code:java}
if (request.ignoreHiddenFile && fullName.c_str()[0] == '.')
return false;
{code}
Should be
{code:java}
if (request.ignoreHiddenFile && name.c_str()[0] == '.')
return false;
{code}
was (Author: phrocker):
offending code is here:
{code:cpp}
if (request.ignoreHiddenFile && fullName.c_str()[0] == '.')
return false;
{code}
Should be
{code:cpp}
if (request.ignoreHiddenFile && name.c_str()[0] == '.')
return false;
{code}
> With default GetFile settings dot files are not getting ignored on linux systems as they should
> -----------------------------------------------------------------------------------------------
>
> Key: MINIFICPP-336
> URL: https://issues.apache.org/jira/browse/MINIFICPP-336
> Project: NiFi MiNiFi C++
> Issue Type: Bug
> Affects Versions: 0.3.0, 0.1.0, 0.2.0
> Reporter: Joseph Witt
> Fix For: 0.4.0
>
>
> With this config
> Processors:
> - name: GetFile
> class: org.apache.nifi.processors.standard.GetFile
> max concurrent tasks: 1
> scheduling strategy: TIMER_DRIVEN
> scheduling period: 0 sec
> penalization period: 30 sec
> yield period: 1 sec
> run duration nanos: 0
> auto-terminated relationships list: []
> Properties:
> Batch Size: '10'
> File Filter: '[^\.].*'
> Ignore Hidden Files: 'true'
> Input Directory: test/input
> Keep Source File: 'false'
> Maximum File Age:
> Maximum File Size:
> Minimum File Age: 0 sec
> Minimum File Size: 0 B
> Path Filter:
> Polling Interval: 0 sec
> Recurse Subdirectories: 'true'
> The minifi flow picks up any files starting with '.' character right away. I believe this is causing duplication to occur when NiFi writes to that directory being watched, for example, because it writes the files a hidden/dot notation then renamed it when done.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)