[SERVER-40227] Pass ignore prepare behavior from a Command attribute into waitForReadConcern, rather than using a whitelist Created: 19/Mar/19  Updated: 29/Oct/23  Resolved: 26/Mar/19

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

Type: Improvement Priority: Major - P3
Reporter: Louis Williams Assignee: Louis Williams
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Storage NYC 2019-03-25, Storage NYC 2019-04-08
Participants:

 Description   

Rather than using a whitelist of strings, commands that can safely ignore prepare conflicts should have an attribute on the Command class like canIgnorePrepareConflicts(), which will be passed into waitForReadConcern, instead of the command name. This is a better option than the current approach which uses a whitelist of string command names.



 Comments   
Comment by Githook User [ 26/Mar/19 ]

Author:

{'email': 'louis.williams@mongodb.com', 'name': 'Louis Williams', 'username': 'louiswilliams'}

Message: SERVER-40227 Pass ignore prepare behavior from a command attribute rather than using a whitelist
Branch: master
https://github.com/mongodb/mongo/commit/31a26cdd8900471c1bc9a934e8d4c16d06f611a3

Generated at Thu Feb 08 04:54:24 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.