-
Notifications
You must be signed in to change notification settings - Fork 375
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
fix(common): resume sending "v" in "gccl" component of API header #7473
Conversation
Resume sending the leading "v" in the value of the "gccl" component of the `X-Goog-Api-Client` header (see googleapis#7383). The Cloud Spanner frontend's route lookup service uses the version string in a semver comparison to determine how the request should be routed, and it currently expects to see a literal "v". (For the record, the minimal version supported by the route lookup service is "v1.17.1".) Changing the route lookup service to not care about the leading "v" is non-trivial (it uses a single-value map, indexed by language, to store the minimum supported version, and the value comes from a flag), and even then the fix will take some time to roll out, so, in the meantime, we revert to sending the "v". Eventually eliminating the "v" is still a goal because it makes the header conform to the specification, and it also makes C++ behave like the other languages.
Google Cloud Build Logs
ℹ️ NOTE: Kokoro logs are linked from "Details" below. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add a TODO that reminds us to remove the v
at a later date?
Codecov Report
@@ Coverage Diff @@
## main #7473 +/- ##
==========================================
- Coverage 93.64% 93.63% -0.01%
==========================================
Files 1361 1361
Lines 118122 118120 -2
==========================================
- Hits 110614 110604 -10
- Misses 7508 7516 +8
Continue to review full report at Codecov.
|
I was going to create an issue instead. |
Resume sending the leading "v" in the value of the "gccl" component
of the
X-Goog-Api-Client
header (see #7383). The Cloud Spannerfrontend's route lookup service uses the version string in a semver
comparison to determine how the request should be routed, and it
currently expects to see a literal "v". (For the record, the
minimal version supported by the route lookup service is "v1.17.1".)
Changing the route lookup service to not care about the leading "v"
is non-trivial (it uses a single-value map, indexed by language, to
store the minimum supported version, and the value comes from a flag),
and even then the fix will take some time to roll out, so, in the
meantime, we revert to sending the "v".
Eventually eliminating the "v" is still a goal because it makes the
header conform to the specification, and it also makes C++ behave
like the other languages.
This change is