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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • STM 2020-06-29
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Daniel Gottlieb (Inactive)
            Reporter:
            Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: