Don't cancel context passed to OpenFifo.#2944
Conversation
|
This PR also removed the I keep getting this error without doing that: |
|
Hm, actually the change alecthomas/gometalinter@96c7e2a broke a ton of things: I'll make a quick change to stick to the commit before alecthomas/gometalinter@96c7e2a for this PR... |
b0cfcbc to
92b89de
Compare
Codecov Report
@@ Coverage Diff @@
## master #2944 +/- ##
=======================================
Coverage 44.02% 44.02%
=======================================
Files 102 102
Lines 10870 10870
=======================================
Hits 4785 4785
Misses 5351 5351
Partials 734 734
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #2944 +/- ##
==========================================
- Coverage 47.64% 44.02% -3.63%
==========================================
Files 92 102 +10
Lines 8513 10870 +2357
==========================================
+ Hits 4056 4785 +729
- Misses 3730 5351 +1621
- Partials 727 734 +7
Continue to review full report at Codecov.
|
92b89de to
365b163
Compare
|
IIUC, the timeout context added in #2877 is mainly for the blocking
|
|
I think the change is reasonable because the fifo non-blocking goroutine is not in the request scope. SGTM. @Random-Liu I see that exec process still uses the request context. do we need to update it too? |
|
@fuweid Hm, actually it seems like a bug to me. We don't cancel the context in the regular code path. And although there can only be one Say we run 1000 short-live execs in a container one by one in 30s, there will be 1000 goroutines running at the same time spawned by the timeout context. I really think we should address containerd/fifo#18 then. @crosbymichael |
59f1368 to
cadb6a4
Compare
|
I updated the PR for the issue mentioned in #2944 (comment). The new change:
If we are ok with this approach, we should also fix all the cherry-picks of #2877 because of #2944 (comment) |
cadb6a4 to
9f669c9
Compare
|
Just FYI; now that #2948 is merged, you can drop commit 9f669c91bd3740d3bb81f7df115ecbb89e3ac355 from this PR (well, assuming you can easily rebase on master) |
There was a problem hiding this comment.
You can remove this now and rebase
9f669c9 to
d98944f
Compare
|
Can you update the commit message to include why this is being done? |
|
LGTM |
Signed-off-by: Lantao Liu <[email protected]>
d98944f to
26ab393
Compare
Done. |
|
LGTM |
Fixes #2937
Fixes #2938
We can have a better fix after containerd/fifo#18 is addressed.
More details at #2944 (comment).
Signed-off-by: Lantao Liu [email protected]