From: Peter Amstutz Date: Tue, 29 Mar 2022 18:51:14 +0000 (-0400) Subject: 18941: Need to leave some space for current block X-Git-Tag: 2.4.0~20^2~11 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/08b093c536619aa2ccaa3456d1e4d03aac73714d 18941: Need to leave some space for current block Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/services/fuse/arvados_fuse/fusedir.py b/services/fuse/arvados_fuse/fusedir.py index 1406c4e4ad..8dcde59ec3 100644 --- a/services/fuse/arvados_fuse/fusedir.py +++ b/services/fuse/arvados_fuse/fusedir.py @@ -525,17 +525,18 @@ class CollectionDirectory(CollectionDirectoryBase): self.collection.update() new_collection_record = self.collection.api_response() else: + get_threads = max(self.api.keep.block_cache.cache_max // (64 * 1024 * 1024)) - 1, 0) # Create a new collection object if uuid_pattern.match(self.collection_locator): coll_reader = arvados.collection.Collection( self.collection_locator, self.api, self.api.keep, num_retries=self.num_retries, - get_threads=(self.api.keep.block_cache.cache_max // (64 * 1024 * 1024))) + get_threads=get_threads) else: coll_reader = arvados.collection.CollectionReader( self.collection_locator, self.api, self.api.keep, num_retries=self.num_retries, - get_threads=(self.api.keep.block_cache.cache_max // (64 * 1024 * 1024)) + get_threads=get_threads) ) new_collection_record = coll_reader.api_response() or {} # If the Collection only exists in Keep, there will be no API