Project

General

Profile

Actions

Idea #7696

closed

[SDKs] PySDK KeepClient works with all service types, applying rules for the proxy type

Added by Brett Smith about 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
Start date:
11/11/2015
Due date:
Story points:
1.0

Description

The KeepClient in the Python SDK will only talk to services that have a known type: either disk, or proxy. It should connect to services of any type. For any type that isn't disk, it should follow the rules that we currently follow when connecting to proxies:

  • Only allow one writer thread at a time.
  • Use "proxy" timeouts.
  • Respect the replication headers in the response.
Test case:
  • Create some keep_services with service_type="fancynewblobstore"
  • Ensure those keep services are used when reading and writing
  • Ensure thread count == 1

Write the above test cases to ensure proper behavior for non-disk, non-proxy services, then make whatever code changes are necessary to make them pass. Right now, we believe this only requires adjusting a few if conditions in the code. Logic to follow the rules has been implemented, but it's being thwarted by earlier code that causes the client code to avoid using the service at all.


Subtasks 1 (0 open1 closed)

Task #7758: Review 7696-pysdk-all-keep-service-types-wipResolvedBrett Smith11/11/2015Actions

Related issues 1 (0 open1 closed)

Related to Arvados - Idea #7710: [SDKs] GoSDK KeepClient works with all service types, applying rules for the proxy typeResolvedRadhika Chippada11/27/2015Actions
Actions

Also available in: Atom PDF