18842: Turn disk write errors into KeepCacheError
authorPeter Amstutz <peter.amstutz@curii.com>
Mon, 28 Nov 2022 21:39:03 +0000 (16:39 -0500)
committerPeter Amstutz <peter.amstutz@curii.com>
Mon, 28 Nov 2022 21:39:03 +0000 (16:39 -0500)
commit650265966e83fca4ce8e9a416e9b5e358e82be98
tree30c75548371a8bb5a13f1b5bacb20874425e3a71
parent2cddd3c4e531e37c6d960c08da91a552bf75a1cc
18842: Turn disk write errors into KeepCacheError

* DiskCacheSlot properly keeps track of the file handle now
* Failure to write disk block to cache will attempt to shrink cache
and try again, if it still fails, turns into KeepCacheError
* init_cache writes a test block to check for working cache

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>
sdk/python/arvados/diskcache.py
sdk/python/arvados/errors.py
sdk/python/arvados/keep.py
sdk/python/tests/test_keep_client.py