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

Round timeOpenMicros to have millisecond precision for assertions that use ISODate

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.2
    • None
    • Diagnostics, Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • 13

    Description

      Currently, in aggregation_currentop.js, an assertion to check that timeOpenMicros is greater than timeBeforeCurrentOp - timeAfterTransactionStarts fails sometimes. This is because timeOpenMicros is a server-side metric with microsecond precision whereas timeBeforeCurrentOp and timeAfterTransactionStarts are ISODates with only millisecond precision. The discrepancy in precision causes rounding issues, so the assertion occasionally fails (ex. 2966 is not greater than 3000). We should round timeOpenMicros to have millisecond precision instead.

      Attachments

        Activity

          People

            jinny.byun Jinny Byun
            jinny.byun Jinny Byun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: