HDFS-16395. Remove useless NNThroughputBenchmark#dummyActionNoSynch(). (#3823)

Reviewed-by: Fei Hui <feihui.ustc@gmail.com>
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
jianghuazhu 2021-12-24 16:24:12 +08:00 committed by GitHub
parent 4db27acf06
commit a5659fe0f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<CreateFlag>(EnumSet