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

restartCatalog problematically discards minVisibleSnapshot data

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.0.1
    • Storage
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Storage NYC 2018-07-02
    • 17

    Description

      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.

      Attachments

        Activity

          People

            daniel.gottlieb@mongodb.com Daniel Gottlieb
            daniel.gottlieb@mongodb.com Daniel Gottlieb
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: