From 3e31a69e40d237ecab0d4cf42fef7b781c23a96b Mon Sep 17 00:00:00 2001 From: ssz1997 Date: Wed, 22 Dec 2021 20:15:56 -0800 Subject: [PATCH 1/2] put all operations in a new dir --- .../src/main/java/alluxio/stress/cli/fuse/FuseIOBench.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stress/shell/src/main/java/alluxio/stress/cli/fuse/FuseIOBench.java b/stress/shell/src/main/java/alluxio/stress/cli/fuse/FuseIOBench.java index 225ed610eb33..a52bc990a7fd 100644 --- a/stress/shell/src/main/java/alluxio/stress/cli/fuse/FuseIOBench.java +++ b/stress/shell/src/main/java/alluxio/stress/cli/fuse/FuseIOBench.java @@ -138,6 +138,8 @@ public void prepare() throws Exception { + "be at least the number of threads, preferably a multiple of it." )); } + // All test operations happen in mLocalpath/fuseIOStressBench + mParameters.mLocalPath = mParameters.mLocalPath + "/fuseIOStressBench"; File localPath = new File(mParameters.mLocalPath); if (mParameters.mOperation == FuseIOOperation.WRITE) { From a339058ed20150996b606dc564777285b115f83e Mon Sep 17 00:00:00 2001 From: ssz1997 Date: Fri, 24 Dec 2021 10:33:03 -0800 Subject: [PATCH 2/2] Use Paths to construct new path --- .../src/main/java/alluxio/stress/cli/fuse/FuseIOBench.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stress/shell/src/main/java/alluxio/stress/cli/fuse/FuseIOBench.java b/stress/shell/src/main/java/alluxio/stress/cli/fuse/FuseIOBench.java index a52bc990a7fd..5fbee6c8cc81 100644 --- a/stress/shell/src/main/java/alluxio/stress/cli/fuse/FuseIOBench.java +++ b/stress/shell/src/main/java/alluxio/stress/cli/fuse/FuseIOBench.java @@ -139,7 +139,7 @@ public void prepare() throws Exception { )); } // All test operations happen in mLocalpath/fuseIOStressBench - mParameters.mLocalPath = mParameters.mLocalPath + "/fuseIOStressBench"; + mParameters.mLocalPath = Paths.get(mParameters.mLocalPath, "fuseIOStressBench").toString(); File localPath = new File(mParameters.mLocalPath); if (mParameters.mOperation == FuseIOOperation.WRITE) {