Skip to content
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

[v10] Deflake TestGRPCErrorWrapping #13652

Merged
merged 3 commits into from
Jun 20, 2022
Merged

Conversation

zmb3
Copy link
Collaborator

@zmb3 zmb3 commented Jun 18, 2022

Backport #13633 to branch/v10

This test would occaisonally fail with:

    === RUN   TestGRPCErrorWrapping
         grpc_test.go:125:
            	Error Trace:	grpc_test.go:125
            	Error:      	Received unexpected error:
            	            	EOF
            	Test:       	TestGRPCErrorWrapping

According to the GPRC docs
(https://pkg.go.dev/google.golang.org/grpc#section-readme)
io.EOF indicates that the server closed the stream and
that "the status of the stream may be discovered using ReadMsg."

Since the test is ultimately attempting to assert that the error
from Recv() is properly wrapped in an "already exists" error, we
tolerate the io.EOF on Send() and continue to check the error from
Recv().

I've run with this change for about 150K iterations and haven't seen
a failure. Prior to this change we would get a few failures per 10K
iterations.
@github-actions github-actions bot added the tsh tsh - Teleport's command line tool for logging into nodes running Teleport. label Jun 18, 2022
@zmb3 zmb3 enabled auto-merge (squash) June 20, 2022 20:07
@zmb3 zmb3 merged commit 55d08d4 into branch/v10 Jun 20, 2022
@zmb3 zmb3 deleted the bot/backport-13633-branch/v10 branch June 20, 2022 23:42
@webvictim webvictim mentioned this pull request Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tsh tsh - Teleport's command line tool for logging into nodes running Teleport.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants