Skip to content
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(spanner): switch order of ListBackupOperations() filter conjuncts #7746

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

devbww
Copy link
Contributor

@devbww devbww commented Dec 16, 2021

Check that the metadata is of the desired type in the left-hand
side of the ListBackupOperations() filter AND expression, before
looking at its value.

This appears to be a recent change in behavior for the production
service, which previously accepted the original ordering, but now
would say: "INVALID_ARGUMENT: Invalid ListBackupOperations request."

Also change the filter subexpressions to be exact matches, rather
than just "contains", so as to make the filtering more precise.

Finally, take this opportunity to log the name of running sample,
which makes it easier to delineate the RPC log.

Fixes #7741.


This change is Reviewable

Check that the metadata is of the desired type in the left-hand
side of the `ListBackupOperations()` filter AND expression, before
looking at its value.

This appears to be a recent change in behavior for the production
service, which previously accepted the original ordering, but now
would say: "INVALID_ARGUMENT: Invalid ListBackupOperations request."

Also change the filter subexpressions to be exact matches, rather
than just "contains", so as to make the filtering more precise.

Finally, take this opportunity to log the name of running sample,
which makes it easier to delineate the RPC log.

Fixes googleapis#7741.
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Dec 16, 2021
@google-cloud-cpp-bot
Copy link
Collaborator

Google Cloud Build Logs
For commit: 5383576ca4cd3987b3f7960b7eb8089c551dabd6

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@codecov
Copy link

codecov bot commented Dec 16, 2021

Codecov Report

Merging #7746 (5383576) into main (eeb02b9) will decrease coverage by 0.00%.
The diff coverage is 16.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7746      +/-   ##
==========================================
- Coverage   95.28%   95.28%   -0.01%     
==========================================
  Files        1257     1257              
  Lines      114109   114111       +2     
==========================================
  Hits       108728   108728              
- Misses       5381     5383       +2     
Impacted Files Coverage Δ
...anner/integration_tests/backup_integration_test.cc 20.20% <0.00%> (+0.20%) ⬆️
google/cloud/spanner/samples/samples.cc 63.11% <20.00%> (-0.04%) ⬇️
.../cloud/storage/benchmarks/throughput_experiment.cc 74.37% <0.00%> (-0.51%) ⬇️
google/cloud/pubsub/samples/samples.cc 92.02% <0.00%> (-0.08%) ⬇️
...le/cloud/storage/internal/curl_download_request.cc 90.10% <0.00%> (+0.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eeb02b9...5383576. Read the comment docs.

@devbww devbww marked this pull request as ready for review December 16, 2021 22:45
@devbww devbww requested a review from a team as a code owner December 16, 2021 22:45
@devbww devbww merged commit 7315ef8 into googleapis:main Dec 16, 2021
@devbww devbww deleted the list-backup-operations branch December 16, 2021 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ListBackupOperations: Invalid ListBackupOperations request
3 participants