Extend the listShards command to return only draining shards

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-07-07, CAR Team 2025-08-04
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      Add a draining filter to the listShards so that only the actively draining shards are returned.

      The structure to call the listShards command with the filter is db.adminCommand({listShards: 1, filter:

      {draining: true}

      )

      Write tests to ensure the correct implementation. 

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

              Created:
              Updated:
              Resolved: