Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1312 Re-balance disks within a Datanode
  3. HDFS-10571

TestDiskBalancerCommand#testPlanNode failed with IllegalArgumentException

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: datanode
    • Labels:
      None

      Description

      TestDiskBalancerCommand#testPlanNode failed with IllegalArgumentException:

      testPlanNode(org.apache.hadoop.hdfs.server.diskbalancer.command.TestDiskBalancerCommand)  Time elapsed: 3.003 sec  <<< ERROR!
      java.lang.IllegalArgumentException: Unable to find the specified node. 5417cffa-1bec-4339-8837-1f7c7ba59664
      	at org.apache.hadoop.hdfs.server.diskbalancer.command.PlanCommand.execute(PlanCommand.java:119)
      	at org.apache.hadoop.hdfs.tools.DiskBalancer.dispatch(DiskBalancer.java:472)
      	at org.apache.hadoop.hdfs.tools.DiskBalancer.run(DiskBalancer.java:188)
      	at org.apache.hadoop.hdfs.server.diskbalancer.command.TestDiskBalancerCommand.runCommand(TestDiskBalancerCommand.java:346)
      	at org.apache.hadoop.hdfs.server.diskbalancer.command.TestDiskBalancerCommand.testPlanNode(TestDiskBalancerCommand.java:283)
      

      In TestDiskBalancerCommand#testPlanNode, here is incorrect, since the FS is set to be loaded from Json file.

      final String planArg = String.format("-%s %s", PLAN,
              cluster.getDataNodes().get(0).getDatanodeUuid());
      

      See the FS loading in TestDiskBalancerCommand#runCommand

      FileSystem.setDefaultUri(conf, clusterJson);
      

        Attachments

        1. HDFS-10571-HDFS-1312.001.patch
          2 kB
          Anu Engineer
        2. HDFS-10571-HDFS-1312.000.patch
          1 kB
          Xiaobing Zhou

          Activity

            People

            • Assignee:
              xiaobingo Xiaobing Zhou
              Reporter:
              xiaobingo Xiaobing Zhou
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: