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

Avoid long sleeps when the system clock is adjusted

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.4.10, 3.5.11, WT3.0.0
    • None
    • Storage 2017-07-31, Storage 2017-08-21
    • v3.4

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              michael.cahill@mongodb.com Michael Cahill
              michael.cahill@mongodb.com Michael Cahill
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: