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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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).

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.

None yet

2 participants