ShardServerOpObserver must only react to the oplog ā€˜c’ entry for createDatabase and dropDatabase

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-04-14
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      ShardServerOpObserver is currently misused to commit metadata for createDatabaseand dropDatabase. Today, its role is to write to disk, populate the DSS, and log the 'c' oplog entry.

      It should only be used to react to the oplog 'c' entry and not be used for installing database metadata in different components. By doing the last, we are decoupling sharding knowledge from the oplog.

              Assignee:
              Pol Pinol
              Reporter:
              Pol Pinol
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: