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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.0
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:

      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

            • Assignee:
              umamaheswararao Uma Maheswara Rao G
              Reporter:
              umamaheswararao Uma Maheswara Rao G
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: