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

Make OperationCPUTimer initializer more resilient

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.9.0
    • None
    • None
    • Fully Compatible
    • Service arch 2020-11-02, Service arch 2020-11-16, Service arch 2020-11-30

    Description

      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. 

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: