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

FileChannel can NPE when log metadata file is empty

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.1
    • Component/s: None
    • Labels:
      None

      Description

      Error:

      java.lang.NullPointerException 
      at org.apache.flume.channel.file.LogFileV3$SequentialReader.<init>(LogFileV3.java:288) 
      

      ProtosFactory.LogFileMetaData.parseDelimitedFrom returns null if the the first byte of the file cannot be read.

        Attachments

        1. FLUME-1761-3.patch
          16 kB
          Brock Noland
        2. FLUME-1761-2.patch
          16 kB
          Brock Noland

          Issue Links

            Activity

              People

              • Assignee:
                brocknoland Brock Noland
                Reporter:
                brocknoland Brock Noland
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: