File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
tests/templates/kuttl/spark-connect Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ commands:
18
18
# Sleep to prevent the following spark connect app from failing
19
19
# while the spark-connect server is busy setting up the executors.
20
20
- script : |
21
- sleep 10
22
- EXECUTOR_COUNT=$(kubectl get pods -n $NAMESPACE --selector 'spark-app-name=spark-connect-server' --field-selector='status.phase=Running' -o NAME|wc -l)
21
+ # wait for the spark-connect CR to become available
22
+ # this is to prevent the spark apps created in the following test steps to fail intermitently
23
+ kubectl wait --for=condition=Available sparkconnectservers/spark-connect --namespace "$NAMESPACE" --timeout=3m
24
+
25
+ EXECUTOR_COUNT=$(kubectl get pods -n "$NAMESPACE" --selector 'spark-app-name=spark-connect-server' --field-selector='status.phase=Running' -o NAME|wc -l)
23
26
test 1 -eq "$EXECUTOR_COUNT"
You can’t perform that action at this time.
0 commit comments