[ARVADOS] updated: d8bfa56903897394775f39b612f8dd84372c5433

git at public.curoverse.com git at public.curoverse.com
Tue Oct 7 13:30:03 EDT 2014


Summary of changes:
 sdk/python/arvados/commands/copy.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

       via  d8bfa56903897394775f39b612f8dd84372c5433 (commit)
      from  91a44b10f8c7eb1bee8fcd23a577a1969bcdb2e4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit d8bfa56903897394775f39b612f8dd84372c5433
Author: Tim Pierce <twp at curoverse.com>
Date:   Tue Oct 7 13:28:55 2014 -0400

    3699: add retry support
    
    Set default num_retries to 2 for the src and dst KeepClients.

diff --git a/sdk/python/arvados/commands/copy.py b/sdk/python/arvados/commands/copy.py
index 6271404..0adbe9b 100755
--- a/sdk/python/arvados/commands/copy.py
+++ b/sdk/python/arvados/commands/copy.py
@@ -354,7 +354,7 @@ def copy_collection(obj_uuid, src, dst, force=False):
 
     # Enumerate the block locators found in the manifest.
     collection_blocks = set()
-    src_keep = arvados.keep.KeepClient(src)
+    src_keep = arvados.keep.KeepClient(api_client=src, num_retries=2)
     for line in manifest.splitlines():
         for block_hash in line.split()[1:]:
             if arvados.util.portable_data_hash_pattern.match(block_hash):
@@ -363,7 +363,7 @@ def copy_collection(obj_uuid, src, dst, force=False):
                 break
 
     # Copy each block from src_keep to dst_keep.
-    dst_keep = arvados.keep.KeepClient(dst)
+    dst_keep = arvados.keep.KeepClient(api_client=dst, num_retries=2)
     for locator in collection_blocks:
         parts = locator.split('+')
         logger.info("Copying block %s (%s bytes)", locator, parts[1])

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list