Open KunWuLuan opened 4 months ago
We can record pod uid when calling GetId() to get podId, so that pod events sequence will be handled correctly.
Nice Suggestion! Could you add the detail about why pod event disordered.
This issue has been automatically marked as stale because it has not had recent activity. This bot triages issues and PRs according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, the issue is closed
You can:/remove-lifecycle stale
/close
Thank you for your contributions.
What happened:
In my environment, a pod in gang may be recreated with same name. Pod add event came before pod delete event, which cause this pod is deleted from gang.Children. This can result in "No enough children in gang" and no pods can get scheduled.
What you expected to happen:
gang.Children can be set correctly when pod event came in wrong sequence.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):