[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: |