MigrationDestinationManager should not blindly dereference _sessionMigration on recovery error handling

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Show
      repro-server-62701.patch
    • Sharding EMEA 2022-01-24
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      If a new migration recipient primary steps-up and then fails (e.g. stepsdown too) during migration recovery, indeed _migrateThread will throw. On cleanup, it will dereference _sessionMigration, which if that node instance had never been the recipient of a migration, will be nullptr.
      It is fine that _sessionMigration is nullptr on recovery. We should just not blindly dereference it in the error handling path.

        1. repro-server-62701.patch
          2 kB
          Jordi Serra Torrens

            Assignee:
            Jordi Serra Torrens
            Reporter:
            Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: