[
https://issues.apache.org/jira/browse/FLUME-2068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13807799#comment-13807799
]
Roshan Naik commented on FLUME-2068:
------------------------------------
I am planning to split this into two different patches for clarity.
1 - disables dual checkpoints on windows (FLUME-2224)
2- for all other checkpoint deletion issues (like reconfigure related tests) -
this ijra
> File Channel issue - recovering from BadCheckpoint exception on Windows
> -----------------------------------------------------------------------
>
> Key: FLUME-2068
> URL: https://issues.apache.org/jira/browse/FLUME-2068
> Project: Flume
> Issue Type: Bug
> Components: Channel, File Channel, Windows
> Affects Versions: v1.3.1
> Reporter: Roshan Naik
> Assignee: Roshan Naik
> Attachments: FLUME-1.3.1-2068.patch
>
>
> In EventQueueBackingStoreFileV3 constructor, if it detects that the
> checkpoint and meta files have differing logWriteOrderIds, it throws a
> BadCheckpointException. Controls goes back to the exception handler in
> Log.replay() which attempts to delete all the files in checkpoint directory
> and start fresh. The same file names are reused when starting fresh.
> Unfortunately this does not work on Windows since the deletion of the
> checkpoint file in the checkpointDir fails. The failure is due to the fact
> that the checkpoint file is memory mapped. Unless it is unmapped the deletion
> will not succeed... and unfortunately Java does not have unmap support.
> Windows does not permit deletion (or renaming) of files in use.
--
This message was sent by Atlassian JIRA
(v6.1#6144)