make sure init exited event is last sent#10650
make sure init exited event is last sent#10650ningmingxiao wants to merge 1 commit intocontainerd:mainfrom
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.
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 <[email protected]>
ecb82bc to
1a2427e
Compare
|
Closing in favor of #10651 |
delete s.pendingExecs and make code easier.
cc @corhere @laurazard @samuelkarp