Skip to content

Commit

Permalink
Added compatibity test for HSync
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantk-12 committed Nov 6, 2024
1 parent 3bc3b8a commit 7e9eed7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hadoop-ozone/dist/src/main/smoketest/compatibility/read.robot
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ FSO Bucket Can Be Read
Execute ozone fs -get ofs://om/vol1/fso-bucket-${SUFFIX}/dir/subdir/file ${TEMP_DIR}/
Execute diff -q ${TESTFILE} ${TEMP_DIR}/file
[teardown] Execute rm -f ${TEMP_DIR}/file

HSync Lease Recover Can Be Used
Pass Execution If '${CLIENT_VERSION}' < '${HSYNC_VERSION}' Client does not support HSYNC
Pass Execution If '${CLUSTER_VERSION}' < '${HSYNC_VERSION}' Cluster does not support HSYNC
Execute ozone debug recover --path=o3fs://bucket1.vol1/dir-${SUFFIX}/file-${SUFFIX}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Resource ../ozone-lib/shell.robot
*** Variables ***
${SUFFIX} ${EMPTY}
${FSO_VERSION} 1.3.0
${HSYNC_VERSION} 1.5.0


*** Keywords ***
Expand Down
10 changes: 10 additions & 0 deletions hadoop-ozone/dist/src/main/smoketest/compatibility/write.robot
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
Documentation Write Compatibility
Resource ../ozone-lib/shell.robot
Resource setup.robot
Resource ../lib/fs.robot
Resource ../ozone-lib/freon.robot
Test Timeout 5 minutes
Suite Setup Create Local Test File

Expand All @@ -40,3 +42,11 @@ FSO Bucket Can Be Created and Used
Execute ozone sh bucket create --layout FILE_SYSTEM_OPTIMIZED /vol1/fso-bucket-${SUFFIX}
Execute ozone fs -mkdir -p ofs://om/vol1/fso-bucket-${SUFFIX}/dir/subdir
Execute ozone fs -put ${TESTFILE} ofs://om/vol1/fso-bucket-${SUFFIX}/dir/subdir/file

HSync Can Be Used To Create Keys
Pass Execution If '${CLIENT_VERSION}' < '${HSYNC_VERSION}' Client does not support HSYNC
Pass Execution If '${CLUSTER_VERSION}' < '${HSYNC_VERSION}' Cluster does not support HSYNC
${o3fspath} = Format FS URL o3fs vol1 bucket1
Freon DFSG sync=HSYNC path=${o3fspath}
${pfspath} = Format FS URL ofs vol1 bucket1
Freon DFSG sync=HSYNC path=${pfspath}

0 comments on commit 7e9eed7

Please sign in to comment.