Skip to content

Refactor Code to Better control Beam Retries #21026

@damccorm

Description

@damccorm

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

# TODO(silviuc): Refactor so that retry logic can be applied.
# There is retry logic in the underlying transfer library but we should make
# it more explicit so we can control the retry parameters.
@retry.no_retries # Using no_retries marks this as an integration point.
def _start_upload(self):

 

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. Original Jira may contain additional context.
Reported by: Ryan.Thompson.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions