Skip to content

Commit 86159a4

Browse files
committed
added missing end_op
1 parent c96b534 commit 86159a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

google/cloud/bigtable/data/_async/_mutate_rows.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,11 @@ async def start(self):
144144
all_errors: list[Exception] = []
145145
for idx, exc_list in self.errors.items():
146146
if len(exc_list) == 0:
147-
raise core_exceptions.ClientError(
147+
exc = core_exceptions.ClientError(
148148
f"Mutation {idx} failed with no associated errors"
149149
)
150+
self._operation_metrics.end_with_status(exc)
151+
raise exc
150152
elif len(exc_list) == 1:
151153
cause_exc = exc_list[0]
152154
else:

0 commit comments

Comments
 (0)