[
https://issues.apache.org/jira/browse/NIFI-1171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15011765#comment-15011765
]
Bryan Bende commented on NIFI-1171:
-----------------------------------
More info... I put a debug statement right before line 495 if (fileLength <
position) and printed the length and position, and when the problem happens
such as at 11:59 in the above example, the fileLength is > position so it never
goes into the block of code that checks for rolled files to process them.
> If a file rolls over multiple times between invocations of TailFile,
> Processor doesn't pick up all changes
> ----------------------------------------------------------------------------------------------------------
>
> Key: NIFI-1171
> URL: https://issues.apache.org/jira/browse/NIFI-1171
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 0.4.0
> Reporter: Mark Payne
> Assignee: Mark Payne
> Fix For: 0.4.0
>
> Attachments:
> 0001-NIFI-1171-If-multiple-rollovers-occur-while-the-Proc.patch
>
>
> If TailFile is scheduled to run less often, say once per minute, and the file
> that it is tailing rolls over multiple times, it does not pick up all of the
> changes. We need to ensure that it picks up all of the changes to the log
> file in this case.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)