You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/08/30 18:12:25 UTC
[GitHub] [beam] scwhittle commented on a change in pull request #15420: [BEAM-11994] Instantiate a new ServiceCallMetric before each request to avoid concurrent modification exception
scwhittle commented on a change in pull request #15420:
URL: https://github.com/apache/beam/pull/15420#discussion_r698700733
##########
File path: sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryServicesImpl.java
##########
@@ -898,6 +896,7 @@ public void deleteDataset(String projectId, String datasetId)
BackOffAdapter.toGcpBackOff(rateLimitBackoffFactory.backoff());
long totalBackoffMillis = 0L;
while (true) {
+ ServiceCallMetric serviceCallMetric = BigQueryUtils.writeCallMetric(ref);
Review comment:
seems like it could be lifted out of while loop
but at a higher level it seemed like the ServiceCallMetric had some caching, would it be better to just add synchronization so that it still can be used across more calls?
--
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: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org