Catalog client's getAllShards should throw on failure always rather than sometimes returning a status

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: 6.0.0, 7.0.0, 8.0.0, 8.2.0-rc0, 8.1.0
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2025-06-23
    • 0
    • None
    • 3
    • TBD
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      The getAllShards function in the catalog client returns a StatusWith which generally implies that it won't throw a DBException and will instead return any errors as a status. However, we assert that the find command worked, causing places which aren't expecting this function to throw to fail.

      In line with the current recommendations on exceptions and statuses, we should just convert this function to throw always rather than return a status.

            Assignee:
            Allison Easton
            Reporter:
            Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: