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

FindBugs : fix "unsafe multithreaded use of DateFormat" warning in hdfs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.21.0
    • None
    • None
    • Reviewed

    Description

      This JIRA fixes the following warning:

      STCAL Call to method of static java.text.DateFormat in org.apache.hadoop.hdfs.server.datanode.DataBlockScanner$LogEntry.newEnry(Block, long)
      Bug type STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE (click for details)
      In class org.apache.hadoop.hdfs.server.datanode.DataBlockScanner$LogEntry
      In method org.apache.hadoop.hdfs.server.datanode.DataBlockScanner$LogEntry.newEnry(Block, long)
      Called method java.text.DateFormat.format(Date)
      Field org.apache.hadoop.hdfs.server.datanode.DataBlockScanner.dateFormat
      At DataBlockScanner.java:[line 385]

      Attachments

        1. 5856-0.patch
          2 kB
          Kan Zhang
        2. 5856-1.patch
          2 kB
          Kan Zhang
        3. 5856-2.patch
          1 kB
          Kan Zhang

        Activity

          People

            kzhang Kan Zhang
            kzhang Kan Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: