Skip to content

send headers when failure is null - #335

Merged
jamesward merged 5 commits into
grpc:masterfrom
sangyongchoi:send-headers-when-failure-is-null
Apr 29, 2022
Merged

jamesward merged 5 commits into
grpc:masterfrom
sangyongchoi:send-headers-when-failure-is-null

Conversation

@sangyongchoi

@sangyongchoi sangyongchoi commented Mar 27, 2022 •

Copy link
Copy Markdown
Contributor

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

linux-foundation-easycla Bot commented Mar 27, 2022 •

Copy link
Copy Markdown

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

sangyongchoi commented Apr 11, 2022 •

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
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

sangyongchoi commented Apr 13, 2022 •

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
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

sangyongchoi commented Apr 13, 2022 •

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@@ -0,0 +1,265 @@
/*

Copy link
Copy Markdown
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
Copy Markdown
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
sangyongchoi requested a review from lowasser April 16, 2022 05:41
@sangyongchoi

Copy link
Copy Markdown
Contributor Author

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

@sangyongchoi

Copy link
Copy Markdown
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