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

Hari Shreedharan commented on FLUME-2595:
-----------------------------------------

There is a bug in TestLog that causes testPutCommit to fail. This is because 
the tests expect that the queue gets reloaded from the log files since there 
was no checkpoint being written earlier, so in addition to log.commitPut, the 
events are not being added to the eventQueue (which is done by the 
FileBackedTransaction in normal operation). 

I fixed this and I am committing this.

So, +1.

> Add option to checkpoint on file channel shutdown
> -------------------------------------------------
>
>                 Key: FLUME-2595
>                 URL: https://issues.apache.org/jira/browse/FLUME-2595
>             Project: Flume
>          Issue Type: Bug
>          Components: File Channel
>    Affects Versions: v1.5.1
>            Reporter: Roshan Naik
>            Assignee: Roshan Naik
>              Labels: channel
>         Attachments: FLUME-2595.patch, FLUME-2595.v2.patch
>
>
> Restarting a File channel based agent can take very long, a few hours to 
> evens days in some cases. The reason being the slow replay performance.
> By having the file channel checkpoint on shutdown, this long replay can 
> avoided as there will be nothing to replay on startup.
> A small hit (a few seconds perhaps) will be observed on shutdown to perform 
> the checkpoint.



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

Reply via email to