forEachCollectionFromDb() should call abandonSnapshot() before running the user provided callback

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.2.0-rc1, 4.3.1
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • v4.2
    • Execution Team 2019-06-17
    • 28
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The forEachCollectionFromDb CollectionCatalog helper should abandon its snapshot before it performs the user provided callback on each collection.
      If the snapshot is not abandoned, then any newly added collections have the chance to be seen as forEachCollectionFromDb iterates over the remaining collections. This could lead to inconsistencies, such as seeing indexes in the IndexCatalog of the new collection but not seeing them on-disk due to using an older snapshot.

            Assignee:
            Gregory Wlodarek
            Reporter:
            Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: