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

uassert if the storage engine does not support checkpoints when running validate with { background: true }

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2019-08-26

      We will have code along the lines of

      opCtx->setCheckpointRead()
      CheckpointLock lk = storageEngine->getCheckpointLock();
      recordStore()->getCursor()
      iam()->getCursor()

      we need something in here to fail when the storage engine does not support background validation using checkpoints...

      We were thinking of making RecoveryUnit::setTimestampReadSource check whether checkpoints are supported via a supportsCheckpoints() function on the RecoveryUnit or StorageEngine, but it appears setTimestampReadSource() is only implemented by WT and otherwise does nothing.

      So, unless we can think of something else, we probably need to create a StorageEngine::supportsCheckpoints() function and use it at the cmd level.

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: