This is an automated email from the ASF dual-hosted git repository.
smengcl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 854bae4e237 HDDS-17702. Run optimized snapshot diff in xcompat test
(#11928)
854bae4e237 is described below
commit 854bae4e2370fd97928854595f2c5338d8bb9d26
Author: Siyao Meng <[email protected]>
AuthorDate: Thu Nov 5 13:31:16 2026 -0800
HDDS-17702. Run optimized snapshot diff in xcompat test (#11928)
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../dist/src/main/compose/xcompat/new-cluster.yaml | 2 ++
.../dist/src/main/smoketest/compatibility/read.robot | 17 +++++++++++++----
2 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/hadoop-ozone/dist/src/main/compose/xcompat/new-cluster.yaml
b/hadoop-ozone/dist/src/main/compose/xcompat/new-cluster.yaml
index 20c71f7eb46..9ae1b3ca252 100644
--- a/hadoop-ozone/dist/src/main/compose/xcompat/new-cluster.yaml
+++ b/hadoop-ozone/dist/src/main/compose/xcompat/new-cluster.yaml
@@ -67,6 +67,8 @@ services:
environment:
ENSURE_OM_INITIALIZED: /data/metadata/om/current/VERSION
OZONE_OM_OPTS: -Dcom.sun.net.ssl.checkRevocation=false
+ OZONE-SITE.XML_ozone.om.snapshot.diff.optimized.enabled: "true"
+ OZONE-SITE.XML_ozone.om.snapshot.force.full.diff: "true"
OZONE_OPTS:
ports:
- 9874:9874
diff --git a/hadoop-ozone/dist/src/main/smoketest/compatibility/read.robot
b/hadoop-ozone/dist/src/main/smoketest/compatibility/read.robot
index b7c29c55a50..cf71f0178c1 100644
--- a/hadoop-ozone/dist/src/main/smoketest/compatibility/read.robot
+++ b/hadoop-ozone/dist/src/main/smoketest/compatibility/read.robot
@@ -187,9 +187,15 @@ Snapshots Can Be Diffed
# old client does not support --get-report
# The snapshot diff command should return the report, submitting a job if
necessary.
- ${output} = Wait For Snapshot diff ${FSO_BUCKET} ${SNAPSHOT1}
${SNAPSHOT2} ${SNAPSHOT_KEY1}
- # Legacy Snapshot Diff Report Omits Dependency Metadata
- Should Not Contain ${output} Report is dependency
+ Wait For Snapshot diff ${FSO_BUCKET} ${SNAPSHOT1} ${SNAPSHOT2}
${SNAPSHOT_KEY1}
+
+Legacy Client Can Read --ordered Snapshot Diff
+ Pass Execution If '${CLUSTER_VERSION}' < '${SNAPSHOT_VERSION}'
Cluster does not support snapshots
+ Pass Execution If '${CLIENT_VERSION}' < '${SNAPSHOT_VERSION}' Client
does not support snapshots
+ Pass Execution If '${CLIENT_VERSION}' >=
'${SNAPSHOT_DIFF_SUBMIT_VERSION}' Tested elsewhere with --get-report
+ Pass Execution If '${DATA_VERSION}' <
'${SNAPSHOT_DIFF_ORDERED_VERSION}' Skipped write test case
+
+ Wait For Snapshot diff ${FSO_BUCKET} ${SNAPSHOT1} ${SNAPSHOT3}
${SNAPSHOT_KEY1} ${SNAPSHOT_KEY2}
Can --get-report of Snapshot Diff
Pass Execution If '${CLUSTER_VERSION}' < '${SNAPSHOT_VERSION}'
Cluster does not support snapshots
@@ -203,4 +209,7 @@ Can --get-report of --ordered Snapshot Diff
Pass Execution If '${CLIENT_VERSION}' <
'${SNAPSHOT_DIFF_SUBMIT_VERSION}' Client does not support snapshot diff
--get-report
Pass Execution If '${DATA_VERSION}' <
'${SNAPSHOT_DIFF_ORDERED_VERSION}' Skipped write test case
- Wait For Snapshot diff --get-report ${FSO_BUCKET} ${SNAPSHOT1}
${SNAPSHOT3} ${SNAPSHOT_KEY1} ${SNAPSHOT_KEY2}
+ ${output} = Wait For Snapshot diff --get-report ${FSO_BUCKET}
${SNAPSHOT1} ${SNAPSHOT3} ${SNAPSHOT_KEY1} ${SNAPSHOT_KEY2}
+ IF '${CLUSTER_VERSION}' >= '${SNAPSHOT_DIFF_ORDERED_VERSION}' and
'${CLIENT_VERSION}' >= '${SNAPSHOT_DIFF_ORDERED_VERSION}'
+ Should Contain ${output} Report is dependency ordered
+ END
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]