Open ealyn opened 1 year ago
Hi Guys, I am new to this repo. Do you think this issue is good for beginner ?
/help
@Manikkame123 Would be great if you could reproduce this issue
@roycaihw: This request has been marked as needing help from a contributor.
Please ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met.
If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help
command.
What happened (please include outputs or screenshots): After
onstarted_leading
function throw exception and finish, the process still leading.What you expected to happen: The process stop leading immediatly.
How to reproduce it (as minimally and precisely as possible): Just follow the
leaderelection/example.py
.Anything else we need to know?: Go client use
ctx.Done()
to find out the OnStartedLeading finish, and then release lock: https://github.com/kubernetes/client-go/blob/1309f64d6648411b4a36a2f7fa84dd8df31884b6/tools/leaderelection/leaderelection.go#L265-L291Environment:
kubectl version
): v1.20.15python --version
): 3.8.10pip list | grep kubernetes
): 21.7.0