[SERVER-62385] Make WriteConcernOptions immutable Created: 06/Jan/22 Updated: 13/Jan/22 Resolved: 13/Jan/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Matt Broadstone | Assignee: | Matt Broadstone |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Sprint: | Server Serverless 2022-01-10, Server Serverless 2022-01-24 |
| Participants: |
| Description |
|
The WriteConcernOptions class currently exposes all of its internal fields, which makes it difficult to reason about its construction, current state, as well as making testing edge cases difficult. Converting the class to an immutable type will help us avoid confusing bugs, and improve our testing around write concerns. |
| Comments |
| Comment by Matt Broadstone [ 13/Jan/22 ] |
|
Superseded by |