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

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

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigtable Issues related to the Bigtable API. labels Feb 21, 2024
@adamroyjones adamroyjones force-pushed the bttest-reject-empty-keys branch 2 times, most recently from 971e22a to 3d1a167 Compare February 21, 2024 22:58
@product-auto-label product-auto-label bot added 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.

@adamroyjones adamroyjones force-pushed the bttest-reject-empty-keys branch 2 times, most recently from 38f5715 to cafe10e Compare February 26, 2024 23:33
@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.

None yet

1 participant