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

Listener timer inaccuracies on non-Linux

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.3.2
    • Component/s: None
    • None
    • Windows

      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).

            Assignee:
            Unassigned Unassigned
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: