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

Improve DataStorage#addStorageLocations() for empty locations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.4.0
    • datanode
    • None
    • Reviewed

    Description

      SuccessLocations content is an array, when the number is 0, do not need to be executed again loadBlockPoolSliceStorage ().

      try
      { 
        final List<StorageLocation> successLocations = loadDataStorage(datanode, nsInfo,    dataDirs, startOpt, executor); 
        return loadBlockPoolSliceStorage(datanode, nsInfo, successLocations, startOpt, executor); 
      } finally{
        executor.shutdown();
      }
      

      Attachments

        1. HDFS-15416.001.patch
          3 kB
          JiangHua Zhu
        2. HDFS-15416.000.patch
          3 kB
          JiangHua Zhu

        Issue Links

          Activity

            People

              jianghuazhu JiangHua Zhu
              jianghuazhu JiangHua Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: