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

Round timeOpenMicros to have millisecond precision for assertions that use ISODate

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.2
    • Affects Version/s: None
    • Component/s: Diagnostics, Replication
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • 13

      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.

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

              Created:
              Updated:
              Resolved: