Make startShardDraining command return error if shard was deleted before acquiring ddl lock

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-08-18
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      The startShardDraining command must return a ShardNotFound error if the shard to drain was removed in the time between checking if the shard exists and getting the DDL lock. To do this the config server startShardDraining has to check if the checkPreconditionsAndStartDrain function returns the remove shard status as completed and, in that case, throw a ShardNotFound error.

            Assignee:
            Laura Mestres Torres (Inactive)
            Reporter:
            Laura Mestres Torres (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: