[SERVER-61944] Remove kMock1, kMock2 FaultFacetType from enum Created: 07/Dec/21  Updated: 06/Dec/22  Resolved: 05/Apr/22

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

Type: Improvement Priority: Minor - P4
Reporter: Lamont Nelson Assignee: [DO NOT USE] Backlog - Sharding NYC
Resolution: Won't Fix Votes: 0
Labels: pm-2364-faulty-mongos, pm-2364-post-4.4.12, sharding-nyc-subteam2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-65274 Complete TODO listed in SERVER-61944 Backlog
Assigned Teams:
Sharding NYC
Participants:
Story Points: 3

 Description   

We can remove these test only types in favor of a class that imitates one of the types used in production.

In tests that need a mock health observer we can register with the following:
registerMockHealthObserver(FaultFacetType::kDns, []

{ return 0; }

);

Under the hood it will register a mock health observer instance that records the intended type.



 Comments   
Comment by Lamont Nelson [ 02/Feb/22 ]

Removed from the epic and leaving this ticket open for now.

Comment by Andrew Shuvalov (Inactive) [ 12/Jan/22 ]

This ticket has TODO in the code.

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