Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-94060

PeriodicShardedTimeseriesShardkeyChecker must gracefully handle any kind of exception

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.4
    • Affects Version/s: 8.0.0-rc18
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-09-02
    • 200

      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.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: