Project

General

Profile

Actions

Bug #4488

closed

[SDKs] arvados.keep.KeepClient.KeepService should know whether it is a proxy

Added by Tim Pierce over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Story points:
-

Description

As it currently stands, if a KeepClient finds that any one of its back end is a proxy, it KeepClient assumes that all of them are. Although this is temporarily a safe assumption, it sets invisible dependencies that may cause the client to behave in subtly wrong ways in a mixed proxy/server environment.

A better solution would be:
  • Extend KeepService to include service_type
  • When setting up service roots, the KeepClient instantiates full KeepService objects with appropriate timeout and proxy settings
  • KeepService.get and KeepService.put know which timeout settings to use and whether to include replication headers in a request

Related issues

Related to Arvados - Bug #4529: [SDKs] Ensure Python and Go SDKs in a given situation always choose either proxies or disks, never some of each.ClosedActions
Actions

Also available in: Atom PDF