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

Round timeOpenMicros to have millisecond precision for assertions that use ISODate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.2
    • Component/s: Diagnostics, Replication
    • Labels:
      None

      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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: