Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2673

While Namenode processing the blocksBeingWrittenReport, it will log incorrect number blocks count

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • namenode
    • None

    Description

      In NameNode#blocksBeingWrittenReport
      we have the following stateChangeLog

      stateChangeLog.info("*BLOCK* NameNode.blocksBeingWrittenReport: "
                 +"from "+nodeReg.getName()+" "+blocks.length +" blocks");
      

      here blocks is long array. Every consecutive 3 elements represents a block ( length, blockid, genstamp).

      So, here in log message, blocks.length should be blocks.length/3.

      Attachments

        1. HDFS-2673.patch
          0.6 kB
          Uma Maheswara Rao G

        Activity

          People

            umamaheswararao Uma Maheswara Rao G
            umamaheswararao Uma Maheswara Rao G
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: