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

Enable enumeration of codes contained in ErrorCodes class

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.4
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-03-06

      the ErrorCodes class generated from error_codes.err error_class should enable an enumeration of the codes.

      In particular currently isNetworkError and isNotMasterError error codes enumerated explicitly inside ShardRegistry::runCommandOnConfigWithRetries. If the set of codes in those classes change, that method will also need to be updated.

      Until this ticket is fixed need to keep them consistent manually.

            Assignee:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Reporter:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: