samples: add support for BatchWriteAtLeastOnce#2506
samples: add support for BatchWriteAtLeastOnce#2506arpan14 merged 10 commits intogoogleapis:mainfrom
Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
| * Assume DDL for the underlying database: | ||
| * <pre>{@code | ||
| * CREATE TABLE Singers ( | ||
| * SingerId INT64 NOT NULL, |
There was a problem hiding this comment.
nit: add a couple of spaces for indentation
| projectId, instanceId, databaseId)); | ||
| assertTrue( | ||
| out.contains("have been applied with commit timestamp") | ||
| || out.contains("could not be applied with error code")); |
There was a problem hiding this comment.
We don't expect an error here, do we? So in that case I think we should let the test case fail with the error instead of letting the test pass here.
If it is possible that the call fails with a transient error (e.g. UNAVAILABLE or ABORTED), then I think that the sample should show how customers should handle that.
There was a problem hiding this comment.
Yeah I agree we should exclude out.contains("could not be applied with error code") and let the test case fail. Modified this.
* samples: add support for BatchWriteAtleastOnce * samples: add support for BatchWriteAtleastOnce * samples: add support for BatchWriteAtleastOnce * modify sample based on new design * remove host * chore: review comments. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: fix review comments. --------- Co-authored-by: Arpan Mishra <[email protected]> Co-authored-by: Arpan Mishra <[email protected]> Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Note: Github checks are expected to fail until #2520 is released, and a new
libraries-bomversion is out.