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

Make resubmitRangeDeletionsOnStepUp exception-safe

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • v4.4
    • Sharding 2020-02-24, Sharding 2020-03-09
    • 21

      migrationutil::submitPendingDeletions can throw (e.g., if PersistentTaskStore::forEach throws, which can happen at least if a range deletion doc cannot be parsed), which will cause resubmitRangeDeletionsOnStepUp to terminate the server since it would be an unhandled exception.

      At the very least, we should add a try/catch in resubmitRangeDeletionsOnStepUp.

            Assignee:
            alex.taskov@mongodb.com Alexander Taskov (Inactive)
            Reporter:
            esha.maharishi@mongodb.com Esha Maharishi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: