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

TenantMigrationDonorService has multiple sources of truth for the current state

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Service Arch

      The TenantMigrationDonorService sometimes uses the _stateDoc as a source of truth for the current state, and other times uses _durableState.state. Additionally, we sometimes save a copy of the in-memory state document off in order to update the durable state document which has lead to data races (SERVER-61565). We should reconsider how we track state to eliminate this class of error, and to make the code more readable for future maintainers.

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: