Extract functions to manage the Sharding subsystem on stepup/down from ReplicationCoordinatorExternalStateImpl

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-10-27, CAR Team 2025-11-10
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      The _shardingOnTransitionToPrimaryHook() and  _shardingOnStepDownHook() private methods of ReplicationCoordinatorExternalStateImpl contain logic to initialize/start/enable a series of node subsystems supporting sharded cluster topologies upon node transition from/to primary role. This choice breaks the separation of concerns between replication and sharding subsystem for no real advantage, since the methods share no state with their parent class.

      On the other hand, the related callback methods of the ShardingInitializationMongoD service represent a more natural fit.

            Assignee:
            Paolo Polato
            Reporter:
            Paolo Polato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: