Skip to content

test(bigtable): add unit test for omitted entry in multi-entry Mutate… - #14463

Open
mutianf wants to merge 3 commits into
googleapis:mainfrom
mutianf:fix-mutaterows-pitfall-5-6
Open

mutianf wants to merge 3 commits into
googleapis:mainfrom
mutianf:fix-mutaterows-pitfall-5-6

Conversation

@mutianf

@mutianf mutianf commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

…RowsResponse

@mutianf
mutianf requested review from a team as code owners September 21, 2026 17:33

@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 adds a new unit test, partialOmissionMultiEntryTest, to verify how MutateRowsAttemptCallable handles missing entry responses in a multi-entry request. The feedback suggests replacing the manual try-catch block of Throwable with assertThrows to improve test robustness and follow idiomatic testing practices.

@nimf nimf 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.

LGTM

Address review comment by replacing the manual try-catch block with
JUnit assertThrows(ExecutionException.class, ...).
The topLevelStatus variable in the MutateRowsException handler had
incorrect 2-space continuation indentation; reformatted to 4-space
per google-java-format as flagged by the Librarian CI check.

Change-Id: I66b9be44c220581c16cc465a331d6fb1a0e2daba
@mutianf
mutianf force-pushed the fix-mutaterows-pitfall-5-6 branch from 6b64115 to f2d5417 Compare September 21, 2026 18:36
@mutianf
mutianf enabled auto-merge (squash) September 21, 2026 18:38
@mutianf mutianf added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 21, 2026
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Sep 21, 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