Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2531

mongorestore hung if restoring views with --preserveUUID --drop options

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 100.1.0
    • Affects Version/s: 4.2.3
    • Component/s: mongorestore
    • None
    • Needed
    • v4.2

      When restoring database views by using mongorestore command with `--preserveUUID --drop` options, mongorestore command hangs.

      + mongo --quiet --eval 'db.version()'
      4.2.3
      + mongo --quiet --eval 'db.createView("view", "coll",   [ { $project: {"field1": 1 } } ] )' test
      { "ok" : 1 }
      + mongodump --archive
      2020-03-24T14:52:05.833+0300	writing admin.system.version to archive on stdout
      2020-03-24T14:52:05.836+0300	done dumping admin.system.version (1 document)
      2020-03-24T14:52:05.836+0300	writing test.view to archive on stdout
      2020-03-24T14:52:05.838+0300	done dumping test.view (0 documents)
      + cat dump
      + mongorestore --archive --drop --preserveUUID
      2020-03-24T14:52:05.898+0300	preparing collections to restore from
      2020-03-24T14:52:05.922+0300	reading metadata for test.view from archive on stdin
      2020-03-24T14:52:05.923+0300	finished restoring test.view (0 documents, 0 failures)
      ...hung here...
      

      The version for both mongod and mongorestore is 4.2.

            Assignee:
            tim.fogarty@mongodb.com Tim Fogarty
            Reporter:
            james.lin@mongodb.com James Lin
            David Golden, Ryan Chipman, Sanika Phanse (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: