Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-37142

invariant failure during movePrimary during cleanup

    XMLWordPrintable

Details

    • Fully Compatible
    • ALL
    • v4.0
    • Sharding 2018-10-08
    • 68

    Description

      One case is when clone hits an assertion here, so the cleanupOnError gets ran before setMovePrimarySourceManager was called.

      This can easily be fixed by either:
      1. Make cleanup no-op if sourceMgr doesn't exist
      or
      2. Move the scopedGuard after uassert (less future proof)

      Attachments

        Activity

          People

            jack.mulrow@mongodb.com Jack Mulrow
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: