Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-35317

restartCatalog problematically discards minVisibleSnapshot data

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.0.1
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Storage NYC 2018-07-02
    • 17

      Restarting the catalog destroys in memory catalog objects (Database, Collection, IndexCatalog[Entry]) and reconstructs them based on the state of the storage engine. However, because the catalog is not versioned, this process loses versioning information, in particular the "minimum visible snapshot" value. That value is used to prevent reading the catalog at too early of a time.

      Typically with rollback, those values are get filled in to correct values when replication recovery plays forward from the stable timestamp. However the restart catalog command does not roll back data, and therefore does not perform any replication recovery.

      This case is only problematic in testing, as the restartCatalog command is test-only.

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: