Round timeOpenMicros to have millisecond precision for assertions that use ISODate

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Jinny Byun (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: