Hadoop Common
  1. Hadoop Common
  2. HADOOP-6489

Findbug report: LI_LAZY_INIT_STATIC, OBL_UNSATISFIED_OBLIGATION

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.21.0
    • Component/s: fs, io, util
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      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)

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Erik Steffl
            Reporter:
            Erik Steffl
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development