Skip to content

Commit 20f6024

Browse files
jianghuazhuaajisaka
authored andcommitted
HDFS-16395. Remove useless NNThroughputBenchmark#dummyActionNoSynch(). (#3823)
Reviewed-by: Fei Hui <[email protected]> Signed-off-by: Akira Ajisaka <[email protected]> (cherry picked from commit a5659fe)
1 parent e0e8443 commit 20f6024

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NNThroughputBenchmark.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -579,11 +579,6 @@ void generateInputs(int[] opsPerThread) throws IOException {
579579
}
580580
}
581581

582-
void dummyActionNoSynch(int daemonId, int fileIdx) {
583-
for(int i=0; i < 2000; i++)
584-
fileNames[daemonId][fileIdx].contains(""+i);
585-
}
586-
587582
/**
588583
* returns client name
589584
*/
@@ -599,7 +594,6 @@ String getExecutionArgument(int daemonId) {
599594
long executeOp(int daemonId, int inputIdx, String clientName)
600595
throws IOException {
601596
long start = Time.now();
602-
// dummyActionNoSynch(fileIdx);
603597
clientProto.create(fileNames[daemonId][inputIdx],
604598
FsPermission.getDefault(), clientName,
605599
new EnumSetWritable<CreateFlag>(EnumSet

0 commit comments

Comments
 (0)