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

Avoid long sleeps when the system clock is adjusted

    XMLWordPrintable

    Details

    • Sprint:
      Storage 2017-07-31, Storage 2017-08-21
    • Backport Requested:
      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

              • Assignee:
                michael.cahill Michael Cahill
                Reporter:
                michael.cahill Michael Cahill
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: