Skip to content

Commit 27027e5

Browse files
authored
HDDS-11659. Improve HSync compatibility test (apache#7404)
(cherry picked from commit 5d18b9c)
1 parent 2e58ea6 commit 27027e5

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

hadoop-ozone/dist/src/main/smoketest/compatibility/read.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ FSO Bucket Can Be Read
4848
[teardown] Execute rm -f ${TEMP_DIR}/file
4949

5050
HSync Lease Recover Can Be Used
51-
Pass Execution If '${DATA_VERSION}' < '${HSYNC_VERSION}' Skipped the test case
51+
Pass Execution If '${DATA_VERSION}' < '${FSO_VERSION}' Skipped write test case
5252
Pass Execution If '${CLIENT_VERSION}' < '${HSYNC_VERSION}' Client does not support HSYNC
5353
Pass Execution If '${CLUSTER_VERSION}' < '${HSYNC_VERSION}' Cluster does not support HSYNC
5454
Execute ozone debug recover --path=ofs://om/vol1/fso-bucket-${SUFFIX}/dir/subdir/file

hadoop-ozone/dist/src/main/smoketest/compatibility/write.robot

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ Suite Setup Create Local Test File
2424

2525
*** Variables ***
2626
${SUFFIX} ${EMPTY}
27-
${VOL} comp-hsync-volume
28-
${BUCK} comp-hsync-bucket
2927

3028

3129
*** Test Cases ***
@@ -48,9 +46,7 @@ FSO Bucket Can Be Created and Used
4846
HSync Can Be Used To Create Keys
4947
Pass Execution If '${CLIENT_VERSION}' < '${HSYNC_VERSION}' Client does not support HSYNC
5048
Pass Execution If '${CLUSTER_VERSION}' < '${HSYNC_VERSION}' Cluster does not support HSYNC
51-
Execute ozone sh volume create /${VOL}
52-
Execute ozone sh bucket create /${VOL}/${BUCK}
53-
${o3fspath} = Format FS URL o3fs ${VOL} ${BUCK}
54-
Freon DFSG sync=HSYNC path=${o3fspath}
55-
${pfspath} = Format FS URL ofs ${VOL} ${BUCK}
56-
Freon DFSG sync=HSYNC path=${pfspath}
49+
${o3fspath} = Format FS URL o3fs vol1 bucket1
50+
Freon DFSG sync=HSYNC n=1 path=${o3fspath}
51+
${pfspath} = Format FS URL ofs $vol1 bucket1
52+
Freon DFSG sync=HSYNC n=1 path=${pfspath}

0 commit comments

Comments
 (0)