Skip to content

Commit

Permalink
Improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 30, 2024
1 parent 7788001 commit f34604a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/check-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fi
count=0
while ! finkctl wait topics --expected "$EXPECTED_TOPICS" --timeout 60s -v1
do
echo "Waiting for topics to be created"
echo "Waiting for expected topics: $EXPECTED_TOPICS"
sleep 5
kubectl get pods
count=$((count+1))
Expand Down
5 changes: 3 additions & 2 deletions e2e/fink-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,16 @@ done

# Wait for Spark pods to be created and warm up
# Debug in case of not expected behaviour
if ! finkctl wait tasks --timeout=300s
timeout="300s"
if ! finkctl wait tasks --timeout="$timeout"
then
for task in $tasks; do
echo "--------- $task log file ---------"
cat "/tmp/$task.log"
done
kubectl describe pods -l "spark-role in (executor, driver)"
kubectl get pods
echo "ERROR: unable to start fink-broker"
echo "ERROR: unable to start fink-broker in $timeout"
exit 1
fi

Expand Down

0 comments on commit f34604a

Please sign in to comment.