Hi Kun, 

Please see below logs:

[###### start the gRPC client #######]
 [io.grpc.internal.ManagedChannelImpl] (pool-4-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] Created with target XXXXXX
 [io.grpc.internal.ManagedChannelImpl] (pool-4-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] Created with target XXXXXX
 [io.grpc.internal.ManagedChannelImpl] (pool-4-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] Exiting idle mode
 [io.grpc.internal.ManagedChannelImpl] (pool-4-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] Exiting idle mode
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-6] Created with target localhost:9096
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-6] Created with target localhost:9096
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-6] Exiting idle mode
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-6] Exiting idle mode
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-6] resolved address: 
[[addrs=[localhost/127.0.0.1:9096], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9096], attrs={}]], config={}
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-6] resolved address: 
[[addrs=[localhost/127.0.0.1:9096], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9096], attrs={}]], config={}
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-6] 
io.grpc.internal.InternalSubchannel-8 created for 
[[addrs=[localhost/127.0.0.1:9096], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9096], attrs={}]]
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-6] 
io.grpc.internal.InternalSubchannel-8 created for 
[[addrs=[localhost/127.0.0.1:9096], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9096], attrs={}]]
 [io.grpc.internal.InternalSubchannel] (grpc-default-executor-0) 
[io.grpc.internal.InternalSubchannel-8] Created 
io.grpc.netty.NettyClientTransport-9 for localhost/127.0.0.1:9096
 [io.grpc.internal.InternalSubchannel] (grpc-default-executor-0) 
[io.grpc.internal.InternalSubchannel-8] Created 
io.grpc.netty.NettyClientTransport-9 for localhost/127.0.0.1:9096
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-3) 
[io.grpc.internal.InternalSubchannel-8] 
io.grpc.netty.NettyClientTransport-9 for localhost/127.0.0.1:9096 is ready
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-3) 
[io.grpc.internal.InternalSubchannel-8] 
io.grpc.netty.NettyClientTransport-9 for localhost/127.0.0.1:9096 is ready
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-6] shutdownNow() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-6] shutdownNow() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-6] shutdown() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-6] shutdown() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-6] Shutting down
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-6] Shutting down
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-3) 
[io.grpc.internal.InternalSubchannel-8] 
io.grpc.netty.NettyClientTransport-9 for localhost/127.0.0.1:9096 is being 
shutdown with status Status{code=UNAVAILABLE, description=Channel shutdown 
invoked, cause=null}
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-3) 
[io.grpc.internal.InternalSubchannel-8] 
io.grpc.netty.NettyClientTransport-9 for localhost/127.0.0.1:9096 is being 
shutdown with status Status{code=UNAVAILABLE, description=Channel shutdown 
invoked, cause=null}
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] resolved address: 
[[addrs=[localhost/127.0.0.1:9096], attrs={}]], config={}
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] resolved address: 
[[addrs=[localhost/127.0.0.1:9096], attrs={}]], config={}
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] 
io.grpc.internal.InternalSubchannel-10 created for 
[[addrs=[localhost/127.0.0.1:9096], attrs={}]]
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] 
io.grpc.internal.InternalSubchannel-10 created for 
[[addrs=[localhost/127.0.0.1:9096], attrs={}]]
 [io.grpc.internal.InternalSubchannel] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.InternalSubchannel-10] Created 
io.grpc.netty.NettyClientTransport-11 for localhost/127.0.0.1:9096
 [io.grpc.internal.InternalSubchannel] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.InternalSubchannel-10] Created 
io.grpc.netty.NettyClientTransport-11 for localhost/127.0.0.1:9096
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-3) 
[io.grpc.internal.InternalSubchannel-8] 
io.grpc.netty.NettyClientTransport-9 for localhost/127.0.0.1:9096 is 
terminated
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-3) 
[io.grpc.internal.InternalSubchannel-8] 
io.grpc.netty.NettyClientTransport-9 for localhost/127.0.0.1:9096 is 
terminated
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-3) 
[io.grpc.internal.InternalSubchannel-8] Terminated in transportTerminated()
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-3) 
[io.grpc.internal.InternalSubchannel-8] Terminated in transportTerminated()
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-worker-ELG-3-3) 
[io.grpc.internal.ManagedChannelImpl-6] Terminated
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-worker-ELG-3-3) 
[io.grpc.internal.ManagedChannelImpl-6] Terminated
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-4) 
[io.grpc.internal.InternalSubchannel-10] 
io.grpc.netty.NettyClientTransport-11 for localhost/127.0.0.1:9096 is ready
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-4) 
[io.grpc.internal.InternalSubchannel-10] 
io.grpc.netty.NettyClientTransport-11 for localhost/127.0.0.1:9096 is ready
*[Some Request coming to server 2]*
*... logs for the Request*
*[server 3 is added, listening on 9097]*
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-12] Created with target localhost:9096
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-12] Created with target localhost:9096
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-12] Exiting idle mode
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-12] Exiting idle mode
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-12] resolved address: 
[[addrs=[localhost/127.0.0.1:9096], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9096], attrs={}]], config={}
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-12] resolved address: 
[[addrs=[localhost/127.0.0.1:9096], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9096], attrs={}]], config={}
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-12] 
io.grpc.internal.InternalSubchannel-14 created for 
[[addrs=[localhost/127.0.0.1:9096], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9096], attrs={}]]
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-12] 
io.grpc.internal.InternalSubchannel-14 created for 
[[addrs=[localhost/127.0.0.1:9096], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9096], attrs={}]]
 [io.grpc.internal.InternalSubchannel] (grpc-default-executor-0) 
[io.grpc.internal.InternalSubchannel-14] Created 
io.grpc.netty.NettyClientTransport-15 for localhost/127.0.0.1:9096
 [io.grpc.internal.InternalSubchannel] (grpc-default-executor-0) 
[io.grpc.internal.InternalSubchannel-14] Created 
io.grpc.netty.NettyClientTransport-15 for localhost/127.0.0.1:9096
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-6) 
[io.grpc.internal.InternalSubchannel-14] 
io.grpc.netty.NettyClientTransport-15 for localhost/127.0.0.1:9096 is ready
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-6) 
[io.grpc.internal.InternalSubchannel-14] 
io.grpc.netty.NettyClientTransport-15 for localhost/127.0.0.1:9096 is ready
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-12] shutdownNow() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-12] shutdownNow() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-12] shutdown() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-12] shutdown() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-12] Shutting down
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-12] Shutting down
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-6) 
[io.grpc.internal.InternalSubchannel-14] 
io.grpc.netty.NettyClientTransport-15 for localhost/127.0.0.1:9096 is being 
shutdown with status Status{code=UNAVAILABLE, description=Channel shutdown 
invoked, cause=null}
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-6) 
[io.grpc.internal.InternalSubchannel-14] 
io.grpc.netty.NettyClientTransport-15 for localhost/127.0.0.1:9096 is being 
shutdown with status Status{code=UNAVAILABLE, description=Channel shutdown 
invoked, cause=null}
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-16] Created with target localhost:9097
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-16] Created with target localhost:9097
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-6) 
[io.grpc.internal.InternalSubchannel-14] 
io.grpc.netty.NettyClientTransport-15 for localhost/127.0.0.1:9096 is 
terminated
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-6) 
[io.grpc.internal.InternalSubchannel-14] 
io.grpc.netty.NettyClientTransport-15 for localhost/127.0.0.1:9096 is 
terminated
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-6) 
[io.grpc.internal.InternalSubchannel-14] Terminated in transportTerminated()
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-6) 
[io.grpc.internal.InternalSubchannel-14] Terminated in transportTerminated()
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-worker-ELG-3-6) 
[io.grpc.internal.ManagedChannelImpl-12] Terminated
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-16] Exiting idle mode
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-16] Exiting idle mode
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-worker-ELG-3-6) 
[io.grpc.internal.ManagedChannelImpl-12] Terminated
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-16] resolved address: 
[[addrs=[localhost/127.0.0.1:9097], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9097], attrs={}]], config={}
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-16] resolved address: 
[[addrs=[localhost/127.0.0.1:9097], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9097], attrs={}]], config={}
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-16] 
io.grpc.internal.InternalSubchannel-18 created for 
[[addrs=[localhost/127.0.0.1:9097], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9097], attrs={}]]
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-executor-0) 
[io.grpc.internal.ManagedChannelImpl-16] 
io.grpc.internal.InternalSubchannel-18 created for 
[[addrs=[localhost/127.0.0.1:9097], attrs={}], 
[addrs=[localhost/0:0:0:0:0:0:0:1:9097], attrs={}]]
 [io.grpc.internal.InternalSubchannel] (grpc-default-executor-0) 
[io.grpc.internal.InternalSubchannel-18] Created 
io.grpc.netty.NettyClientTransport-19 for localhost/127.0.0.1:9097
 [io.grpc.internal.InternalSubchannel] (grpc-default-executor-0) 
[io.grpc.internal.InternalSubchannel-18] Created 
io.grpc.netty.NettyClientTransport-19 for localhost/127.0.0.1:9097
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-8) 
[io.grpc.internal.InternalSubchannel-18] 
io.grpc.netty.NettyClientTransport-19 for localhost/127.0.0.1:9097 is ready
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-8) 
[io.grpc.internal.InternalSubchannel-18] 
io.grpc.netty.NettyClientTransport-19 for localhost/127.0.0.1:9097 is ready
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-16] shutdownNow() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-16] shutdownNow() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-16] shutdown() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-16] shutdown() called
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-16] Shutting down
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-16] Shutting down
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-8) 
[io.grpc.internal.InternalSubchannel-18] 
io.grpc.netty.NettyClientTransport-19 for localhost/127.0.0.1:9097 is being 
shutdown with status Status{code=UNAVAILABLE, description=Channel shutdown 
invoked, cause=null}
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-8) 
[io.grpc.internal.InternalSubchannel-18] 
io.grpc.netty.NettyClientTransport-19 for localhost/127.0.0.1:9097 is being 
shutdown with status Status{code=UNAVAILABLE, description=Channel shutdown 
invoked, cause=null}
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] resolved address: 
[[addrs=[localhost/127.0.0.1:9096], attrs={}], 
[addrs=[localhost/127.0.0.1:9097], attrs={}]], config={}
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] resolved address: 
[[addrs=[localhost/127.0.0.1:9096], attrs={}], 
[addrs=[localhost/127.0.0.1:9097], attrs={}]], config={}
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] 
io.grpc.internal.InternalSubchannel-20 created for 
[[addrs=[localhost/127.0.0.1:9097], attrs={}]]
 [io.grpc.internal.ManagedChannelImpl] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.ManagedChannelImpl-4] 
io.grpc.internal.InternalSubchannel-20 created for 
[[addrs=[localhost/127.0.0.1:9097], attrs={}]]
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-8) 
[io.grpc.internal.InternalSubchannel-18] 
io.grpc.netty.NettyClientTransport-19 for localhost/127.0.0.1:9097 is 
terminated
 [io.grpc.internal.InternalSubchannel] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.InternalSubchannel-20] Created 
io.grpc.netty.NettyClientTransport-21 for localhost/127.0.0.1:9097
 [io.grpc.internal.InternalSubchannel] (name-resolver-safe-6-thread-1) 
[io.grpc.internal.InternalSubchannel-20] Created 
io.grpc.netty.NettyClientTransport-21 for localhost/127.0.0.1:9097
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-8) 
[io.grpc.internal.InternalSubchannel-18] 
io.grpc.netty.NettyClientTransport-19 for localhost/127.0.0.1:9097 is 
terminated
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-8) 
[io.grpc.internal.InternalSubchannel-18] Terminated in transportTerminated()
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-8) 
[io.grpc.internal.InternalSubchannel-18] Terminated in transportTerminated()
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-worker-ELG-3-8) 
[io.grpc.internal.ManagedChannelImpl-16] Terminated
 [io.grpc.internal.ManagedChannelImpl] (grpc-default-worker-ELG-3-8) 
[io.grpc.internal.ManagedChannelImpl-16] Terminated
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-9) 
[io.grpc.internal.InternalSubchannel-20] 
io.grpc.netty.NettyClientTransport-21 for localhost/127.0.0.1:9097 is ready
 [io.grpc.internal.InternalSubchannel] (grpc-default-worker-ELG-3-9) 
[io.grpc.internal.InternalSubchannel-20] 
io.grpc.netty.NettyClientTransport-21 for localhost/127.0.0.1:9097 is ready
*[request logs continues.... and all goes to server 2]*


On Wednesday, January 9, 2019 at 10:18:47 AM UTC-8, eleano...@gmail.com 
wrote:
>
> Hi, 
>
> in my java gRPC client, when I create the ManagedChannel, I am passing my 
> custom NameResolver, and using RoundRobinLoadBalancer. When my NameResolver 
> is notified with a change to the server list (new server added), it will 
> call Listener.onAddress and pass the updated the list.
>
> I see from the Log: the onAddress is called from NameResolverListenerImpl, 
> (9097 is the new server address added)
>
> resolved address: [[addrs=[localhost/127.0.0.1:9096], attrs={}], 
> [addrs=[localhost/127.0.0.1:9097], attrs={}]], config={}
>
>
> however, the traffic is not coming to the new server, did I miss anything?
>
>
> Thanks a lot!
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To post to this group, send email to grpc-io@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/f0b46051-84e1-47f8-be72-0e5c4233cea5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to