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 #9450

Closed
wants to merge 2 commits into from
Closed

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

wants to merge 2 commits into from

Conversation

adamroyjones
Copy link
Contributor

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 February 21, 2024 16:40
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigtable Issues related to the Bigtable API. size: s Pull request size is small. and removed size: m Pull request size is medium. labels Feb 21, 2024
@adamroyjones
Copy link
Contributor Author

The conformance tests are failing. I don't think this is related to these changes: this pull request into main also has similarly failing conformance tests.

@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Feb 26, 2024
…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.
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.

1 participant