KevinGG commented on a change in pull request #17009:
URL: https://github.com/apache/beam/pull/17009#discussion_r819866666
##########
File path: sdks/python/apache_beam/io/gcp/experimental/spannerio.py
##########
@@ -1247,14 +1253,17 @@ def process(self, element):
else:
raise ValueError("Unknown operation action: %s" % m.operation)
batch_func(**m.kwargs)
-
- self.service_metric.call('ok')
except (ClientError, GoogleAPICallError) as e:
- self.service_metric.call(str(e.code.value))
+ for service_metric in self.service_metrics.values():
+ service_metric.call(str(e.code.value))
Review comment:
This should do exactly that since an error fails the whole batch no
matter what kind of error it is.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]