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

Make OperationCPUTimer initializer more resilient

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Service arch 2020-11-02, Service arch 2020-11-16, Service arch 2020-11-30

      Currently, OperationCPUTimer throws an exception if it cannot get the time for the current thread on Linux (see here).

      Instead, it should check if clock_gettime(CLOCK_THREAD_CPUTIME_ID, &t) is available on initialization (here) and terminate if subsequent calls to _getThreadTime() fail. 

            Assignee:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Reporter:
            amirsaman.memaripour@mongodb.com Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: