[SERVER-66519] Make key vault create keys with majority writes. Created: 17/May/22  Updated: 29/Oct/23  Resolved: 17/May/22

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

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Erwin Pe
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Security 2022-05-30
Participants:
Linked BF Score: 39

 Description   

The key vault uses majority read concern to read but inserts are done with default write concern. This introduces a race condition in tests where the test cases cannot see the newly inserted key in the key vault. The insert in src/mongo/shell/keyvault.js should be done with write concern majority.

The read concern of the key vault was changed in SERVER-62666.



 Comments   
Comment by Githook User [ 17/May/22 ]

Author:

{'name': 'Erwin Pe', 'email': 'erwin.pe@mongodb.com', 'username': 'erwee'}

Message: SERVER-66519 Make key vault create keys with majority writes
Branch: master
https://github.com/mongodb/mongo/commit/2ea4597b881279053df1b809e64345fb72f35dcf

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