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(bigtable/bttest): Error when applying a mutation with an empty row key #9512

Merged
merged 3 commits into from
May 24, 2024
Merged

fix(bigtable/bttest): Error when applying a mutation with an empty row key #9512

merged 3 commits into from
May 24, 2024

Conversation

adamroyjones
Copy link
Contributor

@adamroyjones adamroyjones commented Mar 5, 2024

Note

This reopens #9450 (under a new branch name, given apparent limitations with GitHub). This was closed in #9510 with the message

Fixes #9450

which I don't think is true—it didn't affect what I mention below and so I don't know why #9450 was closed. #9510 has no obvious relationship with any of the changes, but I may be missing something.

Against a real version of Bigtable, an attempt to apply a mutation with an empty row key leads to the following error being produced

unable to apply: rpc error: code = InvalidArgument desc = Row keys must be non-empty

bttest does not conform to this behaviour. This branch:

  • adds error-handling when given a mutation with an empty row key, and
  • adds a regression test.

It also, on a separate commit, removes a reference to a deprecated gRPC option from the example. (grpc.WithInsecure was marked as deprecated by v1.43.0 of the library. See here: grpc/grpc-go#4718.)

@adamroyjones adamroyjones requested review from igorbernstein2 and a team as code owners March 5, 2024 16:48
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigtable Issues related to the Bigtable API. labels Mar 5, 2024
@adamroyjones
Copy link
Contributor Author

As before, the Bigtable conformance tests are not failing because of this branch. For an example, see this recently merged pull request; the conformance tests fail for that.

…w key

Against a real version of Bigtable, an attempt to apply a mutation with
an empty row key leads to the following error being produced

```
unable to apply: rpc error: code = InvalidArgument desc = Row keys must be non-empty
```

bttest does not conform to this behaviour. This commit:

- adds error-handling when given a mutation with an empty row key, and
- adds a regression test.
grpc.WithInsecure is deprecated. It was marked as such by v1.43.0 of the
library. See here:

grpc/grpc-go#4718

This commit removes a reference to this from the example comment.
@adamroyjones
Copy link
Contributor Author

As it's been a few months, I've rebased onto the current version of main (54fab10).

@bhshkh bhshkh added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels May 24, 2024
@bhshkh bhshkh enabled auto-merge (squash) May 24, 2024 18:38
@kokoro-team kokoro-team removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels May 24, 2024
@bhshkh bhshkh merged commit 7231423 into googleapis:main May 24, 2024
8 of 10 checks passed
@adamroyjones adamroyjones deleted the bttest-reject-empty-redux branch May 24, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigtable Issues related to the Bigtable API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants