[SERVER-25110] Pass a flag to the ephemeral storage engine to dictate majority write behavior Created: 15/Jul/16 Updated: 06/Dec/22 Resolved: 02/Apr/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding, Storage |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Dianna Hohensee (Inactive) | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Storage Execution
|
| Operating System: | ALL |
| Participants: |
| Description |
|
Unit tests on the config server must run the config server as a replica set via the ReplicationCoordinatorMock because our config server code expects (and frequently checks) that it is a replica set. The ephemeral storage engine invariants that the server is not a replica set in EphemeralForTestRecoveryUnit::setReadFromMajorityCommittedSnapshot. This must be changed to accept or reject majority writes depending on a flag passed down to it from when the ephemeral storage engine is initialized for the unit test. |