apache / apache/beam

Refactor Code to Better control Beam Retries

Open
#21,026 0 comments 0 reactions 0 assignees View on GitHub
gcp improvement io P3 python
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Uploads might be retried in an underlying library on an upload thread.

[https://github.com/apache/beam/blob/c026c9fa00239a6f3650a6fa69f3aa864f692afe/sdks/python/apache_beam/io/gcp/gcsio.py#L635-L639](https://github.com/apache/beam/blob/c026c9fa00239a6f3650a6fa69f3aa864f692afe/sdks/python/apache_beam/io/gcp/gcsio.py#L635-L639)

 

The code is written in such a way as to not easily allow retries. One way to do so would be to allow http errors to be raised and then retry.

 

See also https://issues.apache.org/jira/browse/BEAM-12567

Imported from Jira [BEAM-12758](https://issues.apache.org/jira/browse/BEAM-12758). Original Jira may contain additional context.
Reported by: Ryan.Thompson.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.