Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/templates/kuttl/spark-connect/10-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ commands:
# Sleep to prevent the following spark connect app from failing
# while the spark-connect server is busy setting up the executors.
- script: |
sleep 10
EXECUTOR_COUNT=$(kubectl get pods -n $NAMESPACE --selector 'spark-app-name=spark-connect-server' --field-selector='status.phase=Running' -o NAME|wc -l)
# wait for the spark-connect-server-0 pod to become ready
# this is to prevent the spark apps created in the following test steps to fail intermitently
kubectl wait --for=condition=Ready pod/spark-connect-server-0 --namespace "$NAMESPACE" --timeout=3m

EXECUTOR_COUNT=$(kubectl get pods -n "$NAMESPACE" --selector 'spark-app-name=spark-connect-server' --field-selector='status.phase=Running' -o NAME|wc -l)
test 1 -eq "$EXECUTOR_COUNT"