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

Remove duplicate BlockPoolManager starting when run DataNode

    XMLWordPrintableJSON

Details

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

    Description

      When starting a DataNode, call BlockPoolManager#startAll() twice.
      The first call:
      BlockPoolManager#doRefreshNamenodes()
      private void doRefreshNamenodes(
      Map<String, Map<String, InetSocketAddress>> addrMap,
      Map<String, Map<String, InetSocketAddress>> lifelineAddrMap)
      throws IOException

      { ... startAll(); ... }

      The second call:
      DataNode#runDatanodeDaemon()
      public void runDatanodeDaemon() throws IOException

      { blockPoolManager.startAll(); ... }

      Attachments

        1. HDFS-15448.003.patch
          2 kB
          JiangHua Zhu
        2. method_invoke_path.jpg
          330 kB
          Yiqun Lin
        3. HDFS-15448.002.patch
          2 kB
          JiangHua Zhu
        4. HDFS-15448.001.patch
          2 kB
          JiangHua Zhu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: