Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Xenon postStart script loop forever #201

Closed
acekingke opened this issue Aug 26, 2021 · 3 comments · Fixed by #206
Closed

[Bug] Xenon postStart script loop forever #201

acekingke opened this issue Aug 26, 2021 · 3 comments · Fixed by #206
Labels
bug Something isn't working
Milestone

Comments

@acekingke
Copy link
Contributor

acekingke commented Aug 26, 2021

Describe the problem

When I delete the cluster, found that pod sample-mysql-1 has infinite loop , check the xenon container, it run as follow:
image
But the pod sample-mysql-2 has been deleted!

To Reproduce
cannot reproduce every time, The reason is, buildPostStart generator post-start.sh , Pod add node to xenon is infinite loop

Expected behavior

Environment:

  • RadonDB MySQL version:
@acekingke acekingke added the bug Something isn't working label Aug 26, 2021
@andyli029
Copy link
Contributor

ACK.

@andyli029 andyli029 added this to the v2.1.0 milestone Aug 26, 2021
@acekingke
Copy link
Contributor Author

shell script

while true; do
kubectl delete -f config/samples/mysql_v1alpha1_cluster.yaml;
while kubectl get pod/sample-mysql-0 -o jsonpath='{.status.containerStatuses[0].ready}' 2>/dev/null |grep -q 'true' || kubectl get pod/sample-mysql-1 -o jsonpath='{.status.containerStatuses[0].ready}' 2>/dev/null |grep -q 'true' || kubectl get pod/sample-mysql-2 -o jsonpath='{.status.containerStatuses[0].ready}' 2>/dev/null |grep -q 'true'; do
sleep 1
	echo -n ^
done
kubectl apply -f config/samples/mysql_v1alpha1_cluster.yaml

until kubectl get pod/sample-mysql-0 -o jsonpath='{.status.containerStatuses[0].ready}' 2>/dev/null |grep -q 'true' && kubectl get pod/sample-mysql-1 -o jsonpath='{.status.containerStatuses[0].ready}' 2>/dev/null |grep -q 'true' && kubectl get pod/sample-mysql-2 -o jsonpath='{.status.containerStatuses[0].ready}' 2>/dev/null |grep -q 'true'; do
	sleep 1
	echo -n .
done

done 

But it do not repeat it again

acekingke added a commit to acekingke/radondb-mysql-kubernetes that referenced this issue Aug 30, 2021
acekingke added a commit to acekingke/radondb-mysql-kubernetes that referenced this issue Aug 31, 2021
@andyli029
Copy link
Contributor

Long Run.

acekingke added a commit to acekingke/radondb-mysql-kubernetes that referenced this issue Sep 2, 2021
acekingke added a commit to acekingke/radondb-mysql-kubernetes that referenced this issue Sep 16, 2021
acekingke added a commit to acekingke/radondb-mysql-kubernetes that referenced this issue Sep 16, 2021
acekingke added a commit to acekingke/radondb-mysql-kubernetes that referenced this issue Sep 16, 2021
acekingke added a commit to acekingke/radondb-mysql-kubernetes that referenced this issue Sep 16, 2021
andyli029 added a commit that referenced this issue Sep 16, 2021
api,cluster,sidecar: fix the bug for infinite loop #201, #219
zhl003 pushed a commit to zhl003/radondb-mysql-kubernetes that referenced this issue Aug 17, 2022
zhl003 pushed a commit to zhl003/radondb-mysql-kubernetes that referenced this issue Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants