Flume
  1. Flume
  2. FLUME-1761

FileChannel can NPE when log metadata file is empty

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: v1.3.0
    • Fix Version/s: v1.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.

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

        Issue Links

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development