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

ASF GitHub Bot commented on NIFI-1959:
--------------------------------------

GitHub user pvillard31 opened a pull request:

    https://github.com/apache/nifi/pull/490

    NIFI-1959 Added length and timestamp to detect rollover

    It improves robustness of the processor in case the property “Rolling 
filename pattern” is not set and the tailed file is moved for some reasons.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pvillard31/nifi NIFI-1959

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/490.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 #490
    
----
commit d3d59d58a51ded47ba1b7ebf87a79f678ab41cf2
Author: Pierre Villard <pierre.villard...@gmail.com>
Date:   2016-06-02T23:09:53Z

    NIFI-1959 Added length and timestamp to detect rollover
    
    It improves robustness of the processor in case the property “Rolling
    filename pattern” is not set and the tailed file is moved for some
    reasons.

----


> TailFile not ingesting data when tailed file is moved with no rolling pattern
> -----------------------------------------------------------------------------
>
>                 Key: NIFI-1959
>                 URL: https://issues.apache.org/jira/browse/NIFI-1959
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: 0.6.1
>            Reporter: Pierre Villard
>            Assignee: Pierre Villard
>            Priority: Minor
>
> In case "Rolling Filename Pattern" is not set by user and if the tailed file 
> is moved, then the new file will not be tailed.
> Besides, in such case, the processor will be endlessly triggered without 
> ingesting data: it creates a lot of tasks and consumes CPU. The reason is it 
> never goes in if statement L448.
> A solution is to look at size() and lastUpdated() of the tailed file to 
> detect a "rollover". However it won't allow the processor to ingest the 
> potential data added in the tailed file just before being moved.



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

Reply via email to