Add support to gRPC errdefs for context cancel/deadline exceeded#3308
Conversation
Signed-off-by: Justin Terry (VM) <[email protected]>
|
@Random-Liu - Will update: containerd/cri#1152 when this is merged. |
|
Build succeeded.
|
|
LGTM |
|
|
@crosbymichael this failed at: --- FAIL: TestClientTTRPC_Close (0.01s)
client_ttrpc_test.go:70: assertion failed: rpc error: code = InvalidArgument desc = event envelope has invalid namespace: namespace "" must match ^[A-Za-z][A-Za-z0-9]+(:?[-]+[A-Za-z][A-Za-z0-9]+)*(?:[.](?:[A-Za-z][A-Za-z0-9]+(:?[-]+[A-Za-z][A-Za-z0-9]+)*))*$: invalid argument (err *status.statusError) != ttrpc: closed (ttrpc.ErrClosed *errors.fundamental)Looks like the same test passed in the async tests. Is there a race here? Seems unrelated but maybe we should investigate and fix |
hi @jterry75 I meet this issue yesterday. I found the it is related to select. https://github.com/containerd/ttrpc/blob/master/client.go#L203-L245 |
@fuweid - I think you are on to something here. Just reviewed the code. It does look like its mostly correct. Its a race for sure. I wonder if Although it looks like Ideas? |
|
Given that the issue is not related to this PR can we do them as separate PR's? |
Codecov Report
@@ Coverage Diff @@
## master #3308 +/- ##
==========================================
+ Coverage 44.6% 44.66% +0.05%
==========================================
Files 112 112
Lines 12180 12192 +12
==========================================
+ Hits 5433 5445 +12
Misses 5913 5913
Partials 834 834
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #3308 +/- ##
==========================================
+ Coverage 44.6% 44.66% +0.05%
==========================================
Files 112 112
Lines 12180 12192 +12
==========================================
+ Hits 5433 5445 +12
Misses 5913 5913
Partials 834 834
Continue to review full report at Codecov.
|
|
LGTM |
Signed-off-by: Justin Terry (VM) [email protected]