17465: Synchronizes storage classes data between Collection & BlockManager.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Wed, 2 Jun 2021 19:54:39 +0000 (16:54 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Wed, 2 Jun 2021 19:54:39 +0000 (16:54 -0300)
commit744bbbafa5dcbba814391eaedfa9489c3614b644
treefd4f69abd110018f3c9c45959e132bb7dc7e6046
parentaeb5185342b751b6bbbf1e17024d6f17417ffaf2
17465: Synchronizes storage classes data between Collection & BlockManager.

Storage classes can be set at Collection instantiation time, and BlockManager
used to get that data when being instantiated by Collection, but desired
storage classes can change in the middle of a Collection instance lifetime,
and new blocks should get written on the correct classes, so the solution is
to pass a function for BlockManager to be able to query its parent Collection
instance settings at any time.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
sdk/python/arvados/arvfile.py
sdk/python/arvados/collection.py
sdk/python/tests/test_collections.py