Add check on shardId is not empty in StaleConfigInfo constructor

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 2026-03-02
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      Before SERVER-117245, in StaleConfigInfo::serialize method we had an invariant here checking that the shardId is not an empty string. This invariant has been temporarily removed and should be re-added under the corresponding constructor. After this change, we should initialize the shardId in ClusterRole in the ShardingStateEnabledReturnsTrackedVersion unit test, since otherwise the invariant will throw.

            Assignee:
            Anna Maria Nestorov
            Reporter:
            Anna Maria Nestorov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: