Project

General

Profile

Actions

Idea #3706

closed

[SDKs] Remove fallback-to-keep warning from python SDK if block hash has a permission signature

Added by Tom Clegg over 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
SDKs
Target version:
Start date:
07/31/2014
Due date:
Story points:
0.5

Description

Background: Crunch job tasks can use Keep as a cache for manifest fragments, which crunch-job retrieves at the end of the job using arv-get {block-locator}. The arv-get program does not know at this point whether the supplied block-locator is a reference to a block to retrieve from Keep or a collection to retrieve from the API server.

Current behavior: arv-get issues a warning.
  • Sat Sep 27 02:00:42 2014 2014-09-27 02:00:41 arvados.collection[7714] WARNING: \
    API server did not return Collection '4de3386d281fec68fdc91c31d5ffd3fe+51502+Axxx@54380491'. Trying to fetch directly from Keep (deprecated).
    
Desired behavior:
  • If arv-get is asked to retrieve something that looks like a block hash and has a permission signature hint, it should try fetching it from Keep first, then issue a warning and fall back on API server.
  • If arv-get is asked to retrieve something that looks like a block hash and has no permission signature hint, it should try fetching it from API server, then fall back on Keep. If both fail, the warning should indicate that both methods were attempted and both failed. The existing warning ("plan A failed, trying plan B now") should be removed, i.e., if Keep succeeds, no warning is printed.
    • This scenario is useful only when keepstore services are configured to permit anonymous unauthenticated read access. Otherwise, it wastes an HTTP request but is otherwise harmless.

Subtasks 3 (0 open3 closed)

Task #4367: Review 3706-keep-warningResolvedTom Clegg07/31/2014Actions
Task #4346: Write testsResolvedTom Clegg07/31/2014Actions
Task #4345: Do not warn unless both methods failResolvedTom Clegg07/31/2014Actions

Related issues 2 (0 open2 closed)

Related to Arvados - Bug #5298: [SDKs] Should CollectionReader.all_streams() iterate lines in the manifest, or "logical" streams?Closed02/13/2015Actions
Blocks Arvados - Support #4013: [SDKs] Pipeline instance logging emits misleading warning: API server did not return Collection "...."Closed09/26/2014Actions
Actions

Also available in: Atom PDF