-
Notifications
You must be signed in to change notification settings - Fork 18
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
Merge grpc headers and trailers in case of failure #391
Conversation
A lot of unit tests are broken by this change. |
@pjfanning yes, I am investigating them now. I didn't run the tests when I was checking if it fixed my issue. |
Ran into an unrelated issue: |
That's strange, where does that Trailer without headers get created? |
I would not favour merging this. It ties us to an unreleased version of pekko-http - and I think there is an argument that the real issue is in the AWS code. |
I agree we should not merge this as long as it depends on an unreleased version of Pekko HTTP. The PR is still in 'Draft' mode, so that tracks ;). I agree there's a case to be made that the 'real issue' of #392 is in the AWS implementation. That said, responding with a It might still be possible to adapt this PR to avoid creating the situation where a |
@NavidJalali thanks for working on this, let me know if you'd like me to review your work-in-progress! |
For practical reasons, it would be good to change this PR to avoid creating Trailers with no headers. |
I had to dig to find it, but it seems to be created by some fallback logic I removed in this commit |
Looks like I missed something, I'll get back to debugging |
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.
I like the general direction this is going, a couple of review points!
interop-tests/src/test/scala/org/apache/pekko/grpc/interop/PekkoHttpServerProviderScala.scala
Show resolved
Hide resolved
...rop-tests/src/test/scala/org/apache/pekko/grpc/scaladsl/GrpcExceptionDefaultHandleSpec.scala
Show resolved
Hide resolved
...rop-tests/src/test/scala/org/apache/pekko/grpc/scaladsl/GrpcExceptionDefaultHandleSpec.scala
Outdated
Show resolved
Hide resolved
runtime/src/main/scala/org/apache/pekko/grpc/internal/PekkoNettyGrpcClientGraphStage.scala
Outdated
Show resolved
Hide resolved
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.
This looks good!
(the link validator failure is unrelated, #395)
@pjfanning is the link validator flakey? would it be green if you ran it again? I would love to get a snapshot build |
@NavidJalali don't worry about the link validator - we tend to ignore the results of that build - see #395 |
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
Attempt to fix #392