-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
1
At least in some repair paths (example), we fetch a Collection from CollectionCatalog, but then have checks to see if it is initialised, and call Collection::init otherwise. This is counterintuitive. Initialisation of Collection should only happen before it is registered in the catalog, or when creating copies within the catalog. The usual pattern is to fetch a Collection and just use it.
Otherwise, it requires knowing we are not in an execution path where it is possible to have uninitialised collections returned.