We should have mentioned the signature change in our release note. Sorry 
about that.

The error doesn't seem to be related to the signature change. The message 
is logged from here 
<https://github.com/grpc/grpc-java/blob/v1.1.1/core/src/main/java/io/grpc/internal/DelayedClientTransport.java#L340>,
 
which indicates that the connect attempt has failed. If you turn on FINE 
logging, you may find something useful.

On Tuesday, February 7, 2017 at 6:27:03 AM UTC-8, Jorg Heymans wrote:
>
> Hi,
>
> After updating to grpc 1.1.1 it seems that the semantics around using 
> NameResolver have changed. Basically in our (working) 1.0.3 NameResolver 
> implementation we were doing this in start() :
>
>       Collection<ServiceInstance> serviceInstances = 
> provider.getAllInstances(); // provider is a curator.ServiceProvider
>       List<ResolvedServerInfo> infoGroups = new ArrayList<>();
>       for (ServiceInstance serviceInstance : serviceInstances) {
>         infoGroups.add(new ResolvedServerInfo(
>             
> InetSocketAddress.createUnresolved(serviceInstance.getAddress(), 
> serviceInstance.getPort()),
>             Attributes.EMPTY));
>       }
>       listener.onUpdate(Collections.singletonList(infoGroups), 
> Attributes.EMPTY);
>
> For 1.1.1 we had to slightly change it to match the listener.onUpdate 
> signature change:
>
>       Collection<ServiceInstance> serviceInstances = 
> provider.getAllInstances();
>       List<ResolvedServerInfo> serverInfos = new ArrayList<>();
>       for (ServiceInstance serviceInstance : serviceInstances) {
>         serverInfos.add(new ResolvedServerInfo(
>             
> InetSocketAddress.createUnresolved(serviceInstance.getAddress(), 
> serviceInstance.getPort())));
>       }
>       
> listener.onUpdate(Collections.singletonList(ResolvedServerInfoGroup.builder().addAll(serverInfos).build()),
>           Attributes.EMPTY);
>
> However when our client now tries to connect to the server we get an 
> exception indicating the channel is not active. 
>
> io.grpc.StatusRuntimeException: UNAVAILABLE: Channel in TRANSIENT_FAILURE 
> state
> at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:227)
> at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:208)
>
> Any thoughts what could be going on here ?
>
> Thanks,
> Jorg
>
>
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/41082b5b-1e8e-42c1-855f-4a0680323751%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to