[SERVER-54088] Entering TenantMigrationAccessBlocker committed or aborted states should be idempotent Created: 27/Jan/21  Updated: 28/Jan/21  Resolved: 28/Jan/21

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Jack Mulrow Assignee: Jack Mulrow
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-53981 Make TenantMigrationAccessBlocker::se... Closed
Operating System: ALL
Sprint: Sharding 2021-02-08
Participants:

 Description   

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.


Generated at Thu Feb 08 05:32:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.