-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Service Arch
-
N&O Prioritized List
SERVER-80769 moved several metrics (notably HelloMetrics) from ServiceContext to SessionManager, but due to loose lifecycle management of `shared_ptr<Session>` and the lack of requirement for a TransportLayer in unit tests which using replication logic, it's currently impossible to guarantee a SessionManager is available in all contexts which wish to mutate HelloMetrics.
Resolve this by tightening up transport object ownership, particularly around the Session objects. This will also allow removing the dummy "transportlessHelloMetrics" container for when (during unit tests) Sessions are unassociated to SessionManagers.
- is depended on by
-
SERVER-94307 Cleanup HelloMetrics
- Backlog