Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Fix error propagtion for ServerStreamIterators.#455

Merged
garrettjonesgoogle merged 2 commits intogoogleapis:masterfrom
igorbernstein2:ssc-fix-errors
Jan 8, 2018
Merged

Fix error propagtion for ServerStreamIterators.#455
garrettjonesgoogle merged 2 commits intogoogleapis:masterfrom
igorbernstein2:ssc-fix-errors

Conversation

@igorbernstein2
Copy link
Contributor

Currently the ServerStreamIterator blindly re-throws errors encountered in the async
ResponseObserver. However this creates a confusing stacktrace which does not include any
of the frames from the sync invocation of .next(). This PR wraps the async errors in a
RuntimeException so that both stacktraces are accounted for.

Currently the ServerStreamIterator blindly re-throws errors encountered in the async
ResponseObserver. However this creates a confusing stacktrace which does not include any
of the frames from the sync invocation of .next(). This PR wraps the async errors in a
RuntimeException so that both stacktraces are accounted for.
@codecov-io
Copy link

codecov-io commented Jan 5, 2018

Codecov Report

Merging #455 into master will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #455      +/-   ##
============================================
+ Coverage     71.72%   71.77%   +0.05%     
  Complexity      746      746              
============================================
  Files           154      154              
  Lines          3331     3330       -1     
  Branches        258      258              
============================================
+ Hits           2389     2390       +1     
+ Misses          844      842       -2     
  Partials         98       98
Impacted Files Coverage Δ Complexity Δ
...a/com/google/api/gax/rpc/ServerStreamIterator.java 76.19% <ø> (+8%) 9 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 90103e5...ec4fac8. Read the comment docs.

Copy link
Contributor

@pongad pongad left a comment

Choose a reason for hiding this comment

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

LGTM. @garrettjonesgoogle PTAL

@garrettjonesgoogle
Copy link
Member

LGTM

@garrettjonesgoogle garrettjonesgoogle merged commit c1532dc into googleapis:master Jan 8, 2018
@igorbernstein2 igorbernstein2 deleted the ssc-fix-errors branch January 9, 2018 20:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments