SERVER-88647 added a periodic job checking for timeseries shard keys in a try-catch block assuming checkTimeseriesShardKeys could only throw cancellation exceptions. This is not the case because also other kind of errors may be hit (e.g. PrimarySteppedDown when a shard steps down).
Since in general no exception must be thrown in the body of periodic jobs, we should consider a more conservative approach and catch all type of errors here to prevent crashing the process.
- is caused by
-
SERVER-88647 Warnings for time-series collections sharded on time field
- Closed
- is related to
-
SERVER-96871 Add static analysis checks for throwing in noexcept boundaries
- In Progress