Skip to content

feat(spanner): add sample codes and sample ITs for Cloud Spanner Queues. - #14203

Open
finnzzf wants to merge 3 commits into
googleapis:mainfrom
finnzzf:main
Open

feat(spanner): add sample codes and sample ITs for Cloud Spanner Queues.#14203
finnzzf wants to merge 3 commits into
googleapis:mainfrom
finnzzf:main

Conversation

@finnzzf

@finnzzf finnzzf commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Adding sample codes and tests for queues.

@finnzzf
finnzzf requested review from a team as code owners August 27, 2026 19:52

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new QueueSample class and its corresponding integration test QueueSampleIT to demonstrate Spanner queue operations, including database creation, sending, receiving, acknowledging, and deleting messages using both Mutation and SQL APIs. The review feedback suggests improving exception handling in the sample code by propagating exceptions in createQueueDatabase instead of catching and swallowing them, which simplifies the code and ensures failures are properly propagated.

Comment thread java-spanner/samples/snippets/src/main/java/com/example/spanner/QueueSample.java Outdated
@sakthivelmanii sakthivelmanii added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 1, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants