-
Notifications
You must be signed in to change notification settings - Fork 3.8k
make sure init exited event is last sent #10650
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
Conversation
|
Hi @ningmingxiao. Thanks for your PR. I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
da26564 to
42a7cc3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR just reinvents s.pendingExecs (in the form of s.execRunned – but without accounting for the fact that multiple execs can be pending at once), but adds 3 (three) more state-structs where we store redundant information: s.lastExecEventSent, s.execRunned, and s.execable.
At the very least, a few of those are redundant, accesses to these new fields aren't synchronized, and you only wait for len(s.runningExecsList) == 0 when there are no pending execs which means if there are pending execs you skip over any running exec and immediately send the init exit event.
Access to the new fields aren't synchronized either.
024e886 to
f3e4bd1
Compare
8201436 to
ecb82bc
Compare
|
can you test this pr ? @samuelkarp |
|
I'll look tomorrow but in the meantime you should be able to pull my PR locally and test it too. Steps would be:
|
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn>
ecb82bc to
1a2427e
Compare
|
Closing in favor of #10651 |
delete s.pendingExecs and make code easier.
cc @corhere @laurazard @samuelkarp