In SERVER-86796, the checks for erroring on direct connections were moved to the collection acquisitions and the auto getters. However, this left the warnings in the service entry point due to the requirement that the warning only be emitted once per hour.
It would be preferable, though, to unify these paths so that the warnings are emitted on the same operations that will later become errors.
In this ticket, we should unify these paths while maintaining the property that a warning should only be logged once per hour.
- depends on
-
SERVER-86796 Move direct connection checks into the collection acquisition (and autoGetCollection)
- Closed
- related to
-
SERVER-85157 Simplify concurrency of directshardoperation log-message check
- Closed