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

Refactor replication recovery code to be more modular

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Replication

      While working on the replication recovery code during PM-2209, we noticed it was difficult to extend the logic since much of the code is written in large functions, with many branching conditionals. We had to write a separate function specific for magic restore that duplicated a little bit of some of the recovery logic.

      We should try to refactor the replication recovery code to be more modular, allowing us to reuse code blocks for different functions. We should also try to clean up some of the branching behavior (example) to make the code structure easier to understand.

      This is just a code cleanup ticket, so we can aim to do this after the release.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            ali.mir@mongodb.com Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: