Project

General

Profile

Actions

Feature #5538

closed

[SDK] Add retry support to Go arvadosclient

Added by Peter Amstutz about 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
SDKs
Target version:
Story points:
1.0

Description

ArvadosClient doesn't retry errors. Add a "Retries" field to ArvadosClient and update ArvadosClient.CallRaw() to perform a similar retry loop as recently implemented in KeepClient.

Retry c.Client.Do() if
  • Do() returns an error (i.e., there was no HTTP response) and method is idempotent (GET or PUT)
  • Do() succeeds but the HTTP response code is retryable (use the same list as _HTTP_CAN_RETRY in the Python SDK: 408, 409, 422, 423, 500, 502, 503, 504)

Subtasks 2 (0 open2 closed)

Task #7717: Review branch 5538-close-idle-connectionsResolvedTom Clegg11/04/2015Actions
Task #7685: Review branch 5538-arvadosclient-retryResolvedTom Clegg11/10/2015Actions

Related issues

Related to Arvados - Bug #3910: [SDKs] Client libraries should retry failed API requests after errors like Gateway Timeout (part 2)Closed09/17/2014Actions
Actions

Also available in: Atom PDF