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

mongorestore hangs on invalid archive

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 100.0.0
    • Affects Version/s: None
    • Component/s: mongorestore
    • v4.2

      When attempting to restore an invalid archive file like the one attached (generated by a version of mongodump prior to the fix for TOOLS-2453), mongorestore hangs indefinitely. The hang was introduced in this commit

      While we do not necessarily guarantee any particular behavior on invalid inputs, we should investigate this one, because it may be indicative of an underlying issue in archive restore behavior.

      A quick investigation revealed that the three goroutines that were not restoring intents got stuck here. It is unclear whether this is expected behavior or a bug.

      This comment suggests that we may be incorrectly waiting for all goroutines instead of terminating when receiving the first error. (this was indeed what we did prior to the commit that changed the behavior)

            Assignee:
            varsha.subrahmanyam@mongodb.com Varsha Subrahmanyam (Inactive)
            Reporter:
            ryan.chipman@mongodb.com Ryan Chipman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: