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: update the accounting of partial batch mutations #2149

Merged
merged 32 commits into from
Mar 27, 2024
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
add test
  • Loading branch information
ron-gal committed Mar 21, 2024
commit 820d877bb1b63a65dc3cb8f96096ad3aa37599e9
Expand Up @@ -617,7 +617,10 @@ public void testBatchMutationsPartialFailure() {
.addEntries(
MutateRowsResponse.Entry.newBuilder()
.setIndex(1)
.setStatus(Status.newBuilder().setCode(Code.PERMISSION_DENIED_VALUE))
.setStatus(
Status.newBuilder()
.setCode(Code.PERMISSION_DENIED_VALUE)
.setMessage("fake partial error"))
.build())
.build());
observer.onCompleted();
Expand All @@ -630,6 +633,8 @@ public void testBatchMutationsPartialFailure() {
assertThat(batchingException.getMessage())
.contains(
"Batching finished with 1 partial failures. The 1 partial failures contained 1 entries that failed with: 1 ApiException(1 PERMISSION_DENIED).");
assertThat(batchingException.getMessage()).contains("fake partial error");
assertThat(batchingException.getMessage()).doesNotContain("INTERNAL");
}

@Test
Expand Down