Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-1314

File channel log file can grow beyond max size which causes startup failure

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Starting the channel fails with the following exception:

      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
      

        Attachments

        1. FLUME-1314-1.patch
          2 kB
          Arvind Prabhakar
        2. FLUME-1314-2.patch
          7 kB
          Arvind Prabhakar

          Issue Links

            Activity

              People

              • Assignee:
                aprabhakar Arvind Prabhakar
                Reporter:
                aprabhakar Arvind Prabhakar
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: