Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-6489

Findbug report: LI_LAZY_INIT_STATIC, OBL_UNSATISFIED_OBLIGATION

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.22.0
    • 0.21.0
    • fs, io, util
    • None
    • Reviewed
    • Fix 3 findsbugs warnings.

    Description

      From findbug report:

      Method org.apache.hadoop.io.compress.CompressionCodecFactory.main(String[]) may fail to clean up java.io.OutputStream

      Incorrect lazy initialization of static field org.apache.hadoop.fs.FileContext.localFsSingleton in org.apache.hadoop.fs.FileContext.getLocalFSFileContext()

      Incorrect lazy initialization of static field org.apache.hadoop.util.ReflectionUtils.serialFactory in org.apache.hadoop.util.ReflectionUtils.getFactory(Configuration)

      Given that these have simple fixes I think one bug is enough.

      This is from findbug 1.3.9 running on current trunk:

      Path: .
      URL: http://svn.apache.org/repos/asf/hadoop/common/trunk
      Repository Root: http://svn.apache.org/repos/asf
      Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
      Revision: 898558
      Node Kind: directory
      Schedule: normal
      Last Changed Author: tomwhite
      Last Changed Rev: 897023
      Last Changed Date: 2010-01-07 13:43:38 -0800 (Thu, 07 Jan 2010)

      Attachments

        1. HDFS-6489.patch
          5 kB
          Erik Steffl
        2. HADOOP-6489.1.patch
          4 kB
          Erik Steffl

        Activity

          People

            zasran Erik Steffl
            zasran Erik Steffl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: