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

invariant failure during movePrimary during cleanup

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

      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)

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

              Created:
              Updated:
              Resolved: