Remove ElectionInProgress (216) from ResumableChangeStreamError

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v4.4
    • Repl 2020-04-06
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Since ElectionInProgress is not a user-visible error code, we should remove the check of ElectionInProgress for ResumableChangeStreamError.

      I would also prefer to always stick with the NotMasterError/RetriableError error categories. If we think an error code is client facing and should be retryable, my preference is that we should add that error to the proper category. Special-casing error codes might cause more confusions in the long run.

            Assignee:
            Lingzhi Deng
            Reporter:
            Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: