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

mongorestore hangs on invalid archive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 100.0.0
    • Component/s: mongorestore
    • Labels:
    • Backport Requested:
      v4.2

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              varsha.subrahmanyam Varsha Subrahmanyam
              Reporter:
              ryan.chipman Ryan Chipman
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: