Skip to content

Commit 3296c6f

Browse files
committed
Debugging the Blue/Green e2e tests
1 parent be0ca8e commit 3296c6f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

e2e-tests/test_bluegreen_laststate.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ kubectl exec -it $jm_pod_name -- bash -c "ls -lt /opt/flink/volume/flink-sp/"
6363

6464

6565
tm_pod_name=""
66-
for i in $(seq 1 4); do
66+
for i in $(seq 1 6); do
6767
echo "====="
6868
echo "LISTING PODS:"
6969
kubectl get pods
@@ -86,7 +86,10 @@ for i in $(seq 1 4); do
8686
echo "--=EVs=--"
8787
kubectl describe flinkdep $GREEN_CLUSTER_ID
8888
# kubectl get events --field-selector involvedObject.kind=FlinkDeployment,involvedObject.name=$GREEN_CLUSTER_ID --sort-by=.metadata.creationTimestamp
89-
sleep 15
89+
sleep 30
90+
91+
status=$(kubectl get -oyaml $GREEN_APPLICATION_IDENTIFIER | yq '.status.lifecycleState')
92+
echo "==> lifecycleState after 30 secs: " $status
9093
done
9194

9295

e2e-tests/test_bluegreen_stateless.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ kubectl patch flinkbgdep ${BG_CLUSTER_ID} --type merge --patch '{"spec":{"templa
5151

5252
jm_pod_name=""
5353
tm_pod_name=""
54-
for i in $(seq 1 4); do
54+
for i in $(seq 1 6); do
5555
echo "====="
5656
echo "LISTING PODS:"
5757
kubectl get pods
@@ -74,7 +74,10 @@ for i in $(seq 1 4); do
7474
echo "--=EVs=--"
7575
kubectl describe flinkdep $GREEN_CLUSTER_ID
7676
# kubectl get events --field-selector involvedObject.kind=FlinkDeployment,involvedObject.name=$GREEN_CLUSTER_ID --sort-by=.metadata.creationTimestamp
77-
sleep 15
77+
sleep 30
78+
79+
status=$(kubectl get -oyaml $GREEN_APPLICATION_IDENTIFIER | yq '.status.lifecycleState')
80+
echo "==> lifecycleState after 30 secs: " $status
7881
done
7982

8083

0 commit comments

Comments
 (0)