You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by aa...@apache.org on 2021/12/24 08:24:51 UTC

[hadoop] branch trunk updated: HDFS-16395. Remove useless NNThroughputBenchmark#dummyActionNoSynch(). (#3823)

This is an automated email from the ASF dual-hosted git repository.

aajisaka pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new a5659fe  HDFS-16395. Remove useless NNThroughputBenchmark#dummyActionNoSynch(). (#3823)
a5659fe is described below

commit a5659fe0f784f113489aee375ee1c2da8332d629
Author: jianghuazhu <74...@qq.com>
AuthorDate: Fri Dec 24 16:24:12 2021 +0800

    HDFS-16395. Remove useless NNThroughputBenchmark#dummyActionNoSynch(). (#3823)
    
    Reviewed-by: Fei Hui <fe...@gmail.com>
    Signed-off-by: Akira Ajisaka <aa...@apache.org>
---
 .../apache/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 62f1a50..cfbcb40 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 @@ public class NNThroughputBenchmark implements Tool {
       }
     }
 
-    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 @@ public class NNThroughputBenchmark implements Tool {
     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<CreateFlag>(EnumSet

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org