[
https://issues.apache.org/jira/browse/FLUME-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arvind Prabhakar updated FLUME-1314:
------------------------------------
Attachment: FLUME-1314-2.patch
> File channel log file can grow beyond max size which causes startup failure
> ---------------------------------------------------------------------------
>
> Key: FLUME-1314
> URL: https://issues.apache.org/jira/browse/FLUME-1314
> Project: Flume
> Issue Type: Bug
> Reporter: Arvind Prabhakar
> Assignee: Arvind Prabhakar
> Fix For: v1.2.0
>
> Attachments: FLUME-1314-1.patch, FLUME-1314-2.patch
>
>
> Starting the channel fails with the following exception:
> {noformat}
> 2012-06-24 03:05:32,517 INFO file.LogFile: fast-forward to checkpoint
> position: 2146687031
> 2012-06-24 03:05:32,518 ERROR file.Log: Failed to initialize Log
> java.lang.IllegalStateException: 2146687031
> at
> com.google.common.base.Preconditions.checkState(Preconditions.java:145)
> at
> org.apache.flume.channel.file.LogFile$SequentialReader.next(LogFile.java:335)
> at
> org.apache.flume.channel.file.ReplayHandler.replayLog(ReplayHandler.java:88)
> at org.apache.flume.channel.file.Log.replay(Log.java:229)
> at
> org.apache.flume.channel.file.FileChannel.start(FileChannel.java:202)
> at
> org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:228)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> at
> java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662)
> 2012-06-24 03:05:32,521 ERROR file.FileChannel: Failed to start the file
> channel
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira