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-3.patch
        16 kB
        Brock Noland
      2. FLUME-1761-2.patch
        16 kB
        Brock Noland

        Issue Links

          Activity

          Hari Shreedharan made changes -
          Fix Version/s v1.3.1 [ 12323879 ]
          Hari Shreedharan made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Brock Noland made changes -
          Attachment FLUME-1761-3.patch [ 12560399 ]
          Brock Noland made changes -
          Attachment FLUME-1761-2.patch [ 12559912 ]
          Brock Noland made changes -
          Remote Link This issue links to "Review Board (Web Link)" [ 11804 ]
          Brock Noland made changes -
          Field Original Value New Value
          Status Open [ 1 ] Patch Available [ 10002 ]
          Assignee Brock Noland [ brocknoland ]
          Brock Noland created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development