[SERVER-69834] Investigate ensuring we can only check the feature flag once in a single operation Created: 20/Sep/22  Updated: 05/Dec/22  Resolved: 21/Sep/22

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

Type: Task Priority: Major - P3
Reporter: Huayu Ouyang Assignee: Backlog - Replication Team
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-69212 Allow multiple feature-flag checks wi... Open
Assigned Teams:
Replication
Participants:

 Description   

in a single operation, you can only check the feature flag once. This is because if you checked if the feature flag was enabled multiple times within a single operation, it's possible that the feature flag and FCV might have become enabled/disabled during that time, which would result in only part of the operation being executed.

Currently, it's up to the writer of the code to make sure they only check the feature flag once. We should investigate making this safer by default. For example, we could investigate stashing the result of the feature flag check on the OperationContext so we get a repeatable read for a given operation


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