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

mongorestore hang in replaying oplog with --archive and --oplogReplay option

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.0.2, 4.1.3
    • Fix Version/s: 4.1.4, 4.0.4
    • Component/s: mongorestore
    • Labels:
      None
    • Backport Requested:
      v4.0

      Description

      Hi,

      I have noticed that mongorestore will hang in replaying oplog with --archive and --oplogReplay options.  After my investigation into the code, I have found that the bug was introduced by TOOLS-1972 , which see oplog intent as a special intent. That will cause mongorestore use a SpecialCollectionCache as oplog's DemuxOut and thus finish the demux goroutine early. The following patch may solve this bug.

       

       

        Attachments

          Activity

            People

            Assignee:
            david.golden David Golden
            Reporter:
            zhcn381 CenZheng
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: