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

Add options for Mongo.restart + resmoke for backing up dbpath

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.7.0
    • None
    • Testing Infrastructure
    • None
    • Fully Compatible
    • STM 2020-06-29

    Description

      Example usage:

      $ resmoke.py run --backupOnRestartDir tmp restart_sharding.js
      $ ls -R tmp
      tmp:
      data
       
      tmp/data:
      db
       
      tmp/data/db:
      job0
       
      tmp/data/db/job0:
      mongorunner
       
      tmp/data/db/job0/mongorunner:
      restart_sharding-rs0-0  restart_sharding-rs1-0
       
      tmp/data/db/job0/mongorunner/restart_sharding-rs0-0:
      collection-0--6804599184598065280.wt   collection-27--6804599184598065280.wt  index-20--6804599184598065280.wt  index-9--6804599184598065280.wt
      <snip>
      tmp/data/db/job0/mongorunner/restart_sharding-rs1-0:
      collection-0-6538405330685397570.wt   collection-27-6538405330685397570.wt  index-20-6538405330685397570.wt  journal
      

      Startup is a phase that can discover data inconsistencies. To aid debugging test failures in restart suites, introduce a resmoke + mongo shell option that backs up a dbpath before starting up a mongod process.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: