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

send headers when failure is null #335

Merged
merged 5 commits into from
Apr 29, 2022

Conversation

sangyongchoi
Copy link
Contributor

@sangyongchoi sangyongchoi commented Mar 27, 2022

Hello.
I found an issue that didn't work when I tried retry with coroutines.
I think the problem with it is due to sendHeaders.
So, I added a condition to send only when failure is null.
If this is not the reason, you may close this PR.
thank you.

Related issues: #334

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 27, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: sangyongchoi / name: stitch (0d36639)

@jamesward jamesward added this to the 1.3.0 milestone Apr 5, 2022
@jamesward jamesward requested a review from lowasser April 5, 2022 21:53
@sangyongchoi
Copy link
Contributor Author

sangyongchoi commented Apr 11, 2022

@jamesward @lowasser hi, do you have any discussion about this?
I wonder if this is the cause.
Also, I wonder if the method I suggested solves it. 😄
thank you for looking at my PR

@lowasser
Copy link
Collaborator

It's not entirely clear to me under what circumstances this would happen. Can you add a test that fails before and passes now?

@sangyongchoi
Copy link
Contributor Author

sangyongchoi commented Apr 13, 2022

@jamesward @lowasser hi, i add test example.
i can't get retry count.
You can test while printing after adding count variable in TestServiceImpl.
failure == if there is no null , it only works once.

Sorry, the test sample code is not elegant.

@lowasser
Copy link
Collaborator

Are retries the only setting in which this issue happens? I'll admit I guessed that this would just be a particular arrangement of failures in a normal RPC, but I can believe gRPC handles retries in a special way that can't be otherwise replicated.

It also looks like you added AbstractCoroutinesInteropTest to main, when it should just live in test.

@sangyongchoi
Copy link
Contributor Author

sangyongchoi commented Apr 13, 2022

@lowasser I haven't tried everything, there seems to be no problem with other settings.
I couldn't think of any other way to test it other than live testing.
Can this PR not solve it ?
If this is not the reason, you may close this PR.

thank you. 😄

@lowasser
Copy link
Collaborator

I believe that this PR would solve it, but it'd definitely help if we could simplify the tests so it's easier to follow how the bug occurs. You'd also need to move the tests into the correct directories, at least, before we can merge this.

@sangyongchoi
Copy link
Contributor Author

@lowasser hi, i add test case
How about this test case?

@@ -0,0 +1,265 @@
/*
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file shouldn't be getting added at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this file.
how about another test case. (in ServerCallTest$coroutinesServerRetry)

@sangyongchoi
Copy link
Contributor Author

@lowasser Hi, Have you seen my edits?
Please tell me if you need anything more 😄
thanks!

@sangyongchoi
Copy link
Contributor Author

@lowasser Hi, do you by any chance remember this?
I have a question because there are no reviews.
thank you 😄

@jamesward jamesward merged commit 1195fc2 into grpc:master Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants