Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13782

[TOOLS] mongorestore hung if restoring views with --preserveUUID --drop options

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      Description

      Engineering Description
      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.

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrew.feierabend Andrew Feierabend (Inactive)
              Reporter:
              Anonymous Anonymous
              Participants:
              Last commenter:
              Andrew Feierabend Andrew Feierabend (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Days since reply:
                1 year, 14 weeks ago