-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//grpclb:grpclb Bazel target missing META-INF resources #9149
Comments
This updates Spanner dependencies to latest versions, including a workaround for grpc/grpc-java#9149.
This also updates related dependencies, including a workaround for grpc/grpc-java#9149.
This updates Spanner dependencies to latest versions, including a workaround for grpc/grpc-java#9149.
This also updates related dependencies, including a workaround for grpc/grpc-java#9149.
@SanjayVas Thank you for the report. To clarify, is this something that started to occur recently, or something we were missing all along? |
I think that it's something that was only surfaced by a change when we upgraded https://github.com/googleapis/java-spanner, as we had been using a very old version (3.0.3). Prior to that, I don't think we were using any client libraries that tried to use grpclb. |
@SanjayVas Fixed with #9156. |
@SanjayVas To clarify one thing: would you like me to backport this change to previous versions? |
For my project in particular, we have a workaround and are fine just dropping that once we upgrade to a release that has this fix. I don't know what the backporting policy should be here. AFAICT, the bug is only surfaced when the following conditions are all true:
We only hit (2) after upgrading java-spanner, which I assume in turn picked up something related to grpclb policy from gax-java. I'm not sure which versions of grpc-java you'd want to backport this to as a result. As an aside, the particularly insidious thing is that we only hit the error when attempting to connect to a real Cloud Spanner instance. All of our tests using Spanner Emulator don't hit this path. |
Yes, I verified that maven jars do have this files, and bazel builds didn't. Then I fixed bazel builds in #9156.
I personally don't know how bazel-oriented users set up grpc-java dependencies. Is it pinned to a version tag, f.e. cc @ejona86 |
@sergiitk, let's backport the change, but we don't need to bother yet with making a patch release for it. |
What version of gRPC-Java are you using?
1.46.0
What is your environment?
Linux (Debian Bookworm / gLinux), JDK 11, Bazel 4.2.1
What did you expect to see?
Generated JAR from
//grpclb:grpclb
target includes resources underMETA-INF/services
like how the Maven JAR does.What did you see instead?
JAR does not include these files.
Steps to reproduce the bug
Notes
Due to missing the above files, the default
LoadBalancerRegistry
is unable to find a load balancer forgrpclb
.The text was updated successfully, but these errors were encountered: