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
Add support to gRPC errdefs for context cancel/deadline exceeded #3308
Add support to gRPC errdefs for context cancel/deadline exceeded #3308
Conversation
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
@Random-Liu - Will update: containerd/cri#1152 when this is merged. |
Build succeeded.
|
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.
LGTM
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) juterry@microsoft.com