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

Enable enumeration of codes contained in ErrorCodes class

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.5.4
    • None
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • Platforms 2017-03-06

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: