[
https://issues.apache.org/jira/browse/BEAM-10026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Abhishek Upperwal updated BEAM-10026:
-------------------------------------
Description:
Can't connect to a remote gRPC Job Server.
Error message:
{code:java}
debug_error_string = "{"created":"@1589823816.944330000","description":"Failed
to pick
subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3962,"referenced_errors":[{"created":"@1589823816.944327000","description":"failed
to connect to all
addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":394,"grpc_status":14}]}"
{code}
was:
h2. *ServerFactory.java*
Currently gRPC Job Server is created with *NettyServerBuilder.forPort()* which
by default binds it to localhost and hence can't be accessed remotely.
I propose using *NettyServerBuilder.forAddress()* and use *socket* as the
argument. ** Another change would be to use string from *--job-host* instead of
*InetAddress.getLoopbackAddress()* when creating the socket. **
> Error Connecting to Remote Job Server
> -------------------------------------
>
> Key: BEAM-10026
> URL: https://issues.apache.org/jira/browse/BEAM-10026
> Project: Beam
> Issue Type: Bug
> Components: jobserver
> Affects Versions: 2.20.0
> Reporter: Abhishek Upperwal
> Priority: P2
> Labels: patch
> Original Estimate: 2h
> Remaining Estimate: 2h
>
> Can't connect to a remote gRPC Job Server.
>
> Error message:
> {code:java}
> debug_error_string =
> "{"created":"@1589823816.944330000","description":"Failed to pick
> subchannel","file":"src/core/ext/filters/client_channel/client_channel.cc","file_line":3962,"referenced_errors":[{"created":"@1589823816.944327000","description":"failed
> to connect to all
> addresses","file":"src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc","file_line":394,"grpc_status":14}]}"
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)