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

Skip Recoverable CS opObserver actions during recovery

    • Fully Compatible
    • ALL
    • Hide

      The bug has been spotted on this patch  running drop_collection_sharded.js FSM on the concurrency_sharded_multi_stmt_txn_kill_primary suite:

       

      Show
      The bug has been spotted on  this patch   running drop_collection_sharded.js FSM on the concurrency_sharded_multi_stmt_txn_kill_primary suite:  
    • Sharding EMEA 2021-05-17
    • 148

      On node startup we call recoverFromOplogUpTo that will try to apply all the oplog entries up to the recoverToOplogTimestamp on top of the last stable checkpoint. This is done by calling _applyOplogOperations in RecoveryMode::kStartupFromStableTimestamp . Only after this first recovery phase has been completed RepllcaSetAwareServiceRegistry::onStartup() will be executed.

      All the recoverable critical sections stored on disk are re-installed in-memory as part of the onStartup procedure, so up until that moment we should skip any recoverable CS opObserver actions.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: