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

XMLWordPrintableJSON

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

      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.

       

       

        1. oplog.patch
          1 kB
          CenZheng

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

                Created:
                Updated:
                Resolved: