Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-3461

Avoid long sleeps when the system clock is adjusted

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.10, 3.5.11, WT3.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Storage 2017-07-31, Storage 2017-08-21
    • v3.4

      When calculating a timeout for pthread_cond_timedwait, we start with an absolute time and add the maximum time to wait. If the system clock is adjusted (which happens frequently on Azure), we use the largest clock value we have ever seen in this calculation. That means we can sleep by longer than expected, up to the amount that the clock is adjusted.

            Assignee:
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Reporter:
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: