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

mongorestore drops twice

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 4.0.12
    • Fix Version/s: None
    • Component/s: mongorestore
    • Labels:
      None

      Description

      I call C# function Process.Start which invokes mongorestore command. This command targets to a folder with backups created by mongodump command. The command sometimes fails and sometimes does not. The ratio is about 50:50.  When I run the exactly same command from command line manually, it works 100%.

       

      The fail message looks like: Failed: census.Requisition: error dropping collection: ns not found. It looks like a collection is being dropped twice. If you inspect attached log, you can find example of this with ActionLogItem collection (see picture).

       

      As I said, it fails randomly. It's not always the same collection, it doesn't fail all the time etc.

        Attachments

        1. a.png
          a.png
          63 kB
        2. mongod.zip
          976 kB
        3. Program.cs
          3 kB

          Activity

            People

            Assignee:
            tim.fogarty Tim Fogarty
            Reporter:
            mastercs999@seznam.cz Jan Trpky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: