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

Allow RollbackTest fixture to skip collection validation when restarting node

    • Fully Compatible
    • STM 2019-05-20
    • 1

      The validate command requires a collection X lock, which cannot be acquired if there are outstanding transactions running on the server. The rollback fuzzer may attempt to call RollbackTest#restartNode() after having started transactions on the server. The RollbackTest#restartNode() method should therefore take an optional skipValidation boolean and pass it through to the rst.stop() call.

      The RollbackTest#transitionToSteadyStateOperations() method should also be updated to take an optional skipDataConsistencyChecks boolean (wrapped in an object so it's effectively a named parameter) that acts as a syntactic alternative to the usage of expectPreparedTxnsDuringRollback as a way to avoid calling checkDataConsistency().

            Assignee:
            robert.guo@mongodb.com Robert Guo (Inactive)
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: