diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 8285a99ec2..382671cf2a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -2305,6 +2305,9 @@ Release 2.8.0 - UNRELEASED HDFS-9413. getContentSummary() on standby should throw StandbyException. (Brahma Reddy Battula via mingma) + HDFS-9387. Fix namenodeUri parameter parsing in NNThroughputBenchmark. + (Mingliang Liu via xyao) + Release 2.7.3 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NNThroughputBenchmark.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NNThroughputBenchmark.java index 6d2731563c..5410877243 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NNThroughputBenchmark.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NNThroughputBenchmark.java @@ -382,10 +382,12 @@ protected boolean verifyOpArgument(List args) { args.remove(ugrcIndex); } - try { - namenodeUri = StringUtils.popOptionWithArgument("-namenode", args); - } catch (IllegalArgumentException iae) { - printUsage(); + if (args.indexOf("-namenode") >= 0) { + try { + namenodeUri = StringUtils.popOptionWithArgument("-namenode", args); + } catch (IllegalArgumentException iae) { + printUsage(); + } } String type = args.get(1);