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

Add more diagnostics to Watchdog tests

    • Service Arch
    • 2

      The unit-tests for the watchdog could benefit from more diagnostics, in particular, logging in checks ran by WatchdogCheckThread and the deathCallback invoked by WatchdogMonitorThread. At a minimum, these logs should report the system time when running each callback.

      For example, consider WatchdogMonitorTest::PauseAndResum, defined here. We can changeĀ deathCallback to capture a pointer to the monitorĀ and report the generation numbers for the check and monitor threads, as well as the system time. The same applies to TestCounterCheck::run.

      The additional diagnostics could help with debugging failures caused by the execution platform (e.g., bad OS scheduling).

            Assignee:
            backlog-server-servicearch [DO NOT USE] Backlog - Service Architecture
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: