From 86ee1f5f2444f93929eeb5dd901078d1563575de Mon Sep 17 00:00:00 2001 From: Mattie Fu Date: Tue, 17 Dec 2024 17:45:41 -0500 Subject: [PATCH] test: do not override status for mutate rows (#2456) --- .../com/google/cloud/bigtable/testproxy/CbtTestProxy.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxy.java b/test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxy.java index 86eae14dee..05731cf9c5 100644 --- a/test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxy.java +++ b/test-proxy/src/main/java/com/google/cloud/bigtable/testproxy/CbtTestProxy.java @@ -328,7 +328,13 @@ public void bulkMutateRows( .build()); } responseObserver.onNext( - resultBuilder.setStatus(com.google.rpc.Status.getDefaultInstance()).build()); + resultBuilder + .setStatus( + com.google.rpc.Status.newBuilder() + .setCode(e.getStatusCode().getCode().ordinal()) + .setMessage(e.getMessage()) + .build()) + .build()); responseObserver.onCompleted(); return; } catch (ApiException e) {