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

FileChannel can NPE when log metadata file is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.3.0
    • 1.3.1
    • None
    • 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-2.patch
          16 kB
          Brock Noland
        2. FLUME-1761-3.patch
          16 kB
          Brock Noland

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: