Retake critical section on step up can invariant because of ReplWriterWorker

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding EMEA 2021-05-03
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      On a just elected primary node, it can happen that a ReplWriterWorker is still catching up the oplog causing this check to pass and - subsequently - the critical section to be acquired.

      When this happens, an invariant is triggered during drain mode when trying to retake the critical section (already acquired by the sharding observer).

            Assignee:
            Pierlauro Sciarelli
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: