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

mongorestore sometimes hangs on particular dataset

    • Type: Icon: Investigation Investigation
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • 100.8.1
    • Affects Version/s: None
    • Component/s: mongorestore
    • Labels:
      None
    • 1,669
    • v4.2

      In the BI connector, we invoke mongorestore as shown here. Occasionally, mongorestore will hang when we attempt to restore a .bson.gz file using this code. Currently, the hang is only manifesting itself on Windows, and it occurs only sporadically.

      We originally observed this hang using an older version of mongo-tools, but it persisted even after revendoring to 4da3a69c46185fb20be26e40064c5d0a5647fde6 (master as of 8/18/17). I have so far been unable to reproduce the hang on a spawnhost, but it does appear to hang in the same location every time (see a log here), when restoring bigobjarray.bson.gz.

        1. Screen Shot 2017-08-31 at 1.17.40 PM.png
          Screen Shot 2017-08-31 at 1.17.40 PM.png
          125 kB
        2. repro.go
          1 kB
        3. Screen Shot 2018-01-12 at 1.28.48 PM.png
          Screen Shot 2018-01-12 at 1.28.48 PM.png
          18 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            ryan.chipman@mongodb.com Ryan Chipman
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: