Replace MaxTimeMSExpired with ReadConcernMajorityNotAvailableYet during speculative majority

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      For v4.4 only.
      We wait 15 seconds waiting for the local snapshot to be majority committed then we return MaxTimeMSExpired on failure which is not a transient error so drivers don't retry on them specially that these 15 seconds got applied on commands that doesn't specify maxTimeMS in the first place for example: getMore running on pre-v5.0 versions with emrc=false

      SERVER-68328 made ReadConcernMajorityNotAvailableYet as a transient error and now it is a more suitable to be used here.

      SERVER-68328 should be backported first to v4.4.

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Moustafa Maher
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: