Skip to content

Commit a5659fe

Browse files
authored
HDFS-16395. Remove useless NNThroughputBenchmark#dummyActionNoSynch(). (#3823)
Reviewed-by: Fei Hui <feihui.ustc@gmail.com> Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
1 parent 4db27ac commit a5659fe

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
@@ -578,11 +578,6 @@ void generateInputs(int[] opsPerThread) throws IOException {
578578
}
579579
}
580580

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

0 commit comments

Comments
 (0)