Abacn commented on code in PR #30205:
URL: https://github.com/apache/beam/pull/30205#discussion_r1478996308
##########
sdks/python/apache_beam/io/gcp/gcsio.py:
##########
@@ -228,16 +225,15 @@ def delete_batch(self, paths):
with current_batch:
for path in current_paths:
bucket_name, blob_name = parse_gcs_path(path)
- bucket = self.client.get_bucket(bucket_name)
+ bucket = self.client.bucket(bucket_name)
bucket.delete_blob(blob_name)
for i, path in enumerate(current_paths):
error_code = None
- for j in range(2):
Review Comment:
Good point. That was why it needed to be range(2) or range(4) in
delete_batch and copy_batch
--
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]