-
Notifications
You must be signed in to change notification settings - Fork 104
Use GoogleDefaultChannelBuilder #627
Use GoogleDefaultChannelBuilder #627
Conversation
|
Still need to test with google-cloud-java. |
Codecov Report
@@ Coverage Diff @@
## master #627 +/- ##
============================================
+ Coverage 74.94% 75.29% +0.34%
Complexity 935 935
============================================
Files 177 177
Lines 4099 4080 -19
Branches 328 328
============================================
Hits 3072 3072
+ Misses 874 855 -19
Partials 153 153
Continue to review full report at Codecov.
|
|
PTAL |
|
See b/120606286#comment16 |
yihanzhen
left a comment
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 with two trivial comments.
| builder.maxInboundMetadataSize(maxInboundMetadataSize); | ||
| } | ||
|
|
||
| builder |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| int port = Integer.parseInt(endpoint.substring(colon + 1)); | ||
| String serviceAddress = endpoint.substring(0, colon); | ||
|
|
||
| // TODO(hzyi): Change to ManagedChannelBuilder directly when |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Swapping everyone over to GoogleDefaultChannelBuilder would break users in ClassLoading environments because it will leak a thread and thus the class loader. You should really wait for grpc/grpc-java#4755 to be fixed and released. |
ejona86
left a comment
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.
It LGTM, but as I mentioned, I don't think GoogleDefaultChannelBuilder is ready for all users to begin using it. That needs to be resolved on the gRPC-side.
|
@andreamlin seems that the issue @ejona86 mentioned has recently been fixed (grpc/grpc-java#5210). Any chance this can be revamped now? |
|
@mziccard thanks for the heads up. I'll wait for @jiangtaoli2016 to confirm. |
|
Note that the issue is only fixed on master, not the grpc-java 1.18.x release. However, SRV is disabled by default so you shouldn't hit that issue unless you are explicitly passing a flag to grpc to enable SRV/ALTS. |
|
This should probably be reverted because of grpc/grpc-java#5303 . If you let users specify the CallCredentials then that will become a NOOP with this change. Filed #649 . Note that a wholesale revert wouldn't be as good as just replacing the GoogleDefaultChannelBuilder with ManagedChannelBuilder. |
Resolves #626.