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

Consolidate logic for checking if a collection is replicated

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-07-24, Repl 2023-08-07, Repl 2023-08-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      NamespaceString::isReplicated, ReplicationCoordinator::canAcceptWritesFor(), and  ReplicationCoordinator::canAcceptWritesFor_UNSAFE() all have overlapping logic to check if a collection is replicated. It is error-prone to have this logic in multiple places in ways that could diverge accidentally.

            Assignee:
            kaitlin.mahar@mongodb.com Kaitlin Mahar
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: