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

Entering TenantMigrationAccessBlocker committed or aborted states should be idempotent

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • ALL
    • Sharding 2021-02-08

      The TenantMigrationAccessBlocker can enter the committed or aborted states (kReject and kAborted, respectively) through a write unit of work onCommit handler or the op observer onMajorityCommitPointUpdate() listener. If these are interleaved, the access blocker may try to enter the same state twice, which triggers an invariant. Instead the methods for entering either state should early return if that state has already been entered.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: