Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-52872

Remove StatusWith methods from ShardingCatalogClient

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
    • Fully Compatible
    • Sharding 2020-11-30

      The ShardingCatalogClient uses both StatusWith and exception-throwing methods, which is potential source of bugs and also adds code verbosity. This ticket is to switch entirely to exception-throwing methods, which will also allow some of the parsing code to be thrown out (namely the fromBSON methods like this one), simplifying the work for SERVER-52776.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: