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

Listener timer inaccuracies on non-Linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 2.3.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Operating System:
      Windows

      Description

      On my Windows VirtualBox machine, getElapsedTimeMillis() shows that 640ms pass during a wall clock period of 1000ms. This is rather inaccurate, and this is because we are estimating the select() period on Windows using hardcoded values.

      This causes problems for code trying to measure long periods of time with this. For example, mongos cursor timeout code is hoping to time out cursors after ten minutes; instead, on Windows, it will time out in 15.6 minutes (this was causing a unit test failure on Windows).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              milkie Eric Milkie
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: