dombizita commented on code in PR #12175:
URL: https://github.com/apache/ozone/pull/12175#discussion_r4708818316


##########
hadoop-ozone/dist/src/main/compose/xcompat/lib.sh:
##########
@@ -82,7 +69,50 @@ _test_checkpoint_compatibility() {
     compatibility/checkpoint.robot
 }
 
+# Generates version combinations for read tests in the form of
+#   reader=writer
+# printing to stdout.
+#
+# Ideally a combination should be tested if it is related to the current
+# version in any way:
+# - cluster running
+# - client who wrote the data
+# - client to read the data
+#
+# But due to `ozone` command overhead, old clients read other old writes
+# only if they support batch execution.
+get_read_version_combinations() {
+  [[ -n "${cluster_version}" ]] || return 1
+  [[ -n "${current_version}" ]] || return 2
+  [[ -n "${old_versions}" ]] || return 3
+
+  local all_versions="$old_versions $current_version"
+  local reader writer
+  for reader in ${all_versions}; do
+    local batch_reader=$(python3 -c "print(str('${reader}' >= 
'${BATCH_VERSION}').lower())")

Review Comment:
   ```suggestion
       [[ ! "${reader}" < "${BATCH_VERSION}" ]]
   ```
   Claude suggested this, so it doesn't need python3. I found a similar usage 
in the file 
https://github.com/adoroszlai/ozone/blob/55fc82c4bc2e3b283cf1a3d310e2c1ac5801aeeb/hadoop-ozone/dist/src/main/compose/xcompat/lib.sh#L143



##########
hadoop-ozone/dist/src/main/compose/xcompat/test-old.sh:
##########
@@ -15,24 +15,19 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-#suite:compat-old

Review Comment:
   Is this intended? I see that `compat-new` suite is still there in the 
`test-new.sh`. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to