Ensure Collections returned by CollectionCatalog are always initialised

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: