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

StorageReport array is initialized with wrong size in DatanodeDescriptor#getStorageReports

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.6.0
    • namenode
    • None
    • Reviewed

    Description

      Here is related code:

        public StorageReport[] getStorageReports() {
          final StorageReport[] reports = new StorageReport[storageMap.size()];
      

      Other methods use the following construct:

          synchronized (storageMap) {
      

      Attachments

        1. h6810_20140803.patch
          0.8 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: