adoroszlai commented on code in PR #9772:
URL: https://github.com/apache/ozone/pull/9772#discussion_r2815252137


##########
hadoop-ozone/dist/src/main/k8s/examples/testlib.sh:
##########
@@ -50,6 +50,23 @@ wait_for_startup(){
    fi
 }
 
+wait_for_pipeline() {
+  retry assert_pipeline_exists
+}
+
+execute_command_in_container() {
+   CONTAINER="$1"
+   shift 1 #Remove first argument which was the container name
+
+   kubectl exec "${CONTAINER}" -- "$@"
+}
+
+assert_pipeline_exists() {
+   local count
+   count=$(execute_command_in_container scm-0 ozone admin pipeline list 
--state OPEN --filter-by-factor THREE --json | jq -r 'length')

Review Comment:
   kubernetes examples start 3 datanodes, EC pipelines are not tested.
   
   
https://github.com/apache/ozone/blob/2a94b52d8924b093963c99bc2d9d25a43dd0641e/hadoop-ozone/dist/src/main/k8s/definitions/ozone/datanode-ss.yaml#L28



-- 
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