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

Loss of precision in duration measurement of insertion of keys from sorter into index

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • ALL
    • Service Arch 2023-01-23

    Description

      We time the duration of time it takes to insert keys from the sorter into the index as part of the index building process, and log this duration at default level. See here However the way we covert the timed duration to Milliseconds to log loses precision and we end up losing any sub-second granularity. For short-running index builds this makes the log line less useful as we lose information about how long this step is taking. This is quick to fix by changing the conversion to Milliseconds to use duration cast, as the Timer itself has adequate granularity. 

      Attachments

        Activity

          People

            george.wangensteen@mongodb.com George Wangensteen
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: