From a5659fe0f784f113489aee375ee1c2da8332d629 Mon Sep 17 00:00:00 2001 From: jianghuazhu <740087514@qq.com> Date: Fri, 24 Dec 2021 16:24:12 +0800 Subject: [PATCH] HDFS-16395. Remove useless NNThroughputBenchmark#dummyActionNoSynch(). (#3823) Reviewed-by: Fei Hui Signed-off-by: Akira Ajisaka --- .../hadoop/hdfs/server/namenode/NNThroughputBenchmark.java | 6 ------ 1 file changed, 6 deletions(-) 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 62f1a507fd..cfbcb40ffb 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 @@ -578,11 +578,6 @@ void generateInputs(int[] opsPerThread) throws IOException { } } - void dummyActionNoSynch(int daemonId, int fileIdx) { - for(int i=0; i < 2000; i++) - fileNames[daemonId][fileIdx].contains(""+i); - } - /** * returns client name */ @@ -598,7 +593,6 @@ String getExecutionArgument(int daemonId) { long executeOp(int daemonId, int inputIdx, String clientName) throws IOException { long start = Time.now(); - // dummyActionNoSynch(fileIdx); clientProto.create(fileNames[daemonId][inputIdx], FsPermission.getDefault(), clientName, new EnumSetWritable(EnumSet