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

Add interceptor to inject remote address to non-ok status discription #441

Merged
merged 5 commits into from
Sep 16, 2020

Conversation

WeiranFang
Copy link
Contributor

For debugging purposes, when client receives non-ok status, we want to know the remote peer address.

To achieve this, we need add additional client interceptor to introspect the remote address before error got thrown out, and also inject the address string into the status description.

+cc @veblush

@medb
Copy link
Contributor

medb commented Sep 14, 2020

/gcbrun

@codecov
Copy link

codecov bot commented Sep 14, 2020

Codecov Report

Merging #441 into master will decrease coverage by 0.09%.
The diff coverage is 25.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #441      +/-   ##
============================================
- Coverage     81.54%   81.45%   -0.10%     
  Complexity     2016     2016              
============================================
  Files           134      134              
  Lines          8877     8890      +13     
  Branches       1043     1043              
============================================
+ Hits           7239     7241       +2     
- Misses         1206     1218      +12     
+ Partials        432      431       -1     
Flag Coverage Δ Complexity Δ
#hadoop2integrationtest 58.88% <0.00%> (+<0.01%) 1407.00 <0.00> (ø)
#hadoop2unittest 69.37% <25.00%> (-0.08%) 1693.00 <0.00> (ø)
#hadoop3integrationtest 58.74% <0.00%> (-0.09%) 1407.00 <0.00> (ø)
#hadoop3unittest 69.38% <25.00%> (-0.08%) 1697.00 <0.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
...google/cloud/hadoop/gcsio/StorageStubProvider.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...adoop/gcsio/GoogleCloudStorageGrpcReadChannel.java 86.51% <100.00%> (+0.15%) 43.00 <0.00> (ø)
...doop/gcsio/GoogleCloudStorageGrpcWriteChannel.java 80.60% <100.00%> (+0.34%) 9.00 <0.00> (ø)

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 d57f364...9927ec6. Read the comment docs.

@veblush
Copy link
Contributor

veblush commented Sep 15, 2020

Thanks! This would be helpful to nail the backend!

@hongyegong hongyegong self-requested a review September 16, 2020 04:24
@hongyegong hongyegong merged commit 815e773 into GoogleCloudDataproc:master Sep 16, 2020
hongyegong added a commit to hongyegong/bigdata-interop that referenced this pull request Oct 13, 2020
hongyegong added a commit that referenced this pull request Oct 13, 2020
#471)

* Revert "Add interceptor to inject remote address to non-ok status discription (#441)"

This reverts commit 815e773.
hongyegong added a commit that referenced this pull request Nov 6, 2020
#471)

* Revert "Add interceptor to inject remote address to non-ok status discription (#441)"

This reverts commit 815e773.
mayanks pushed a commit to mayanks/hadoop-connectors that referenced this pull request Aug 3, 2022
mayanks pushed a commit to mayanks/hadoop-connectors that referenced this pull request Aug 3, 2022
GoogleCloudDataproc#471)

* Revert "Add interceptor to inject remote address to non-ok status discription (GoogleCloudDataproc#441)"

This reverts commit 815e773.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants