enhance: update v1/v2 runtime#2769
Conversation
1. avoid dead lock during kill, fetch allProcesses before handle events 2. use argu's ctx instead of context.Backgroud() in openlog Signed-off-by: Wei Fu <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #2769 +/- ##
=========================================
- Coverage 47.39% 40.89% -6.5%
=========================================
Files 91 69 -22
Lines 8415 9388 +973
=========================================
- Hits 3988 3839 -149
- Misses 3704 4992 +1288
+ Partials 723 557 -166
Continue to review full report at Codecov.
|
| } | ||
|
|
||
| for _, p := range s.processes { | ||
| for _, p := range s.allProcesses() { |
There was a problem hiding this comment.
Is the different between use s.allProcesses() and s.process
There was a problem hiding this comment.
we don't want to be hang in locking state so we retrieve processes before handling the runc exit event.
|
By the way, @crosbymichael , does runtime v1 will be abandoned , and use runtime v2 instead in project roadmap ? since I see in |
|
LGTM |
|
@Ace-Tang we are going to give it a couple of releases for users to switch over to v2 runtime before removing v1. |
[release/1.1] cherry-pick: enhance: update v1/v2 runtime
Signed-off-by: Wei Fu [email protected]