You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 14, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on May 14, 2026. It is now read-only.
The following two tests are consistently failing with grpc-java 1.77.0 and passing with 1.76.2.
Error: Tests run: 65, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.556 s <<< FAILURE! -- in com.google.api.gax.grpc.InstantiatingGrpcChannelProviderTest
Error: com.google.api.gax.grpc.InstantiatingGrpcChannelProviderTest.canUseDirectPath_happyPathWithBoundToken -- Time elapsed: 0.014 s <<< ERROR!
java.lang.IllegalStateException: Default config is invalid: Status{code=UNKNOWN, description=None of [grpclb] specified by Service Config are available., cause=null}
at com.google.common.base.Preconditions.checkState(Preconditions.java:603)
at io.grpc.internal.ManagedChannelImpl.<init>(ManagedChannelImpl.java:616)
at io.grpc.internal.ManagedChannelImplBuilder.build(ManagedChannelImplBuilder.java:731)
at io.grpc.ForwardingChannelBuilder2.build(ForwardingChannelBuilder2.java:278)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:750)
at com.google.api.gax.grpc.ChannelPool.<init>(ChannelPool.java:106)
at com.google.api.gax.grpc.ChannelPool.create(ChannelPool.java:84)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:358)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:351)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProviderTest.canUseDirectPath_happyPathWithBoundToken(InstantiatingGrpcChannelProviderTest.java:827)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Error: com.google.api.gax.grpc.InstantiatingGrpcChannelProviderTest.canUseDirectPath_happyPath -- Time elapsed: 0.002 s <<< ERROR!
java.lang.IllegalStateException: Default config is invalid: Status{code=UNKNOWN, description=None of [grpclb] specified by Service Config are available., cause=null}
at com.google.common.base.Preconditions.checkState(Preconditions.java:603)
at io.grpc.internal.ManagedChannelImpl.<init>(ManagedChannelImpl.java:616)
at io.grpc.internal.ManagedChannelImplBuilder.build(ManagedChannelImplBuilder.java:731)
at io.grpc.ForwardingChannelBuilder2.build(ForwardingChannelBuilder2.java:278)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createSingleChannel(InstantiatingGrpcChannelProvider.java:750)
at com.google.api.gax.grpc.ChannelPool.<init>(ChannelPool.java:106)
at com.google.api.gax.grpc.ChannelPool.create(ChannelPool.java:84)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.createChannel(InstantiatingGrpcChannelProvider.java:358)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.getTransportChannel(InstantiatingGrpcChannelProvider.java:351)
at com.google.api.gax.grpc.InstantiatingGrpcChannelProviderTest.canUseDirectPath_happyPath(InstantiatingGrpcChannelProviderTest.java:773)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
This is found when testing the upper bound dependencies versions. See the link for details.
There's an explicit usage of gRPC-LB. The test would start passing if you add a runtime dependency on io.grpc:grpc-grpclb.
However, you shouldn't actually need grpclb because no client is using it; the server isn't running any more. It looks like there's some code that forces use of pick-first with grpclb. That should be the same as specifying just pick_first (not as a child of grpclb), which is actually the default.
The quickest thing would be to change getDefaultDirectPathServiceConfig():
The following two tests are consistently failing with grpc-java 1.77.0 and passing with 1.76.2.
This is found when testing the upper bound dependencies versions. See the link for details.