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

Ensure time comparison is done in thread-safe manner

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0, WT3.0.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage 2017-08-21, Storage 2017-09-11

      There are several cases in WiredTiger where a timestamp is used by multiple threads. Since time is not co-ordinated amongst threads (we don't guarantee that it can't go backward), we need to review those usages and ensure they are safe.

      Ideally we'll add a mechanism for making it unlikely we'll introduce bugs in shared-time functionality in the future.

      Original description:
      sue.loverso notes:

      I'm sure there are threads that can be negatively affected by time moving backward in that they'll compute a wildly long wait time.

      Based on the discussion in WiredTiger Pull Request #3537, we should guarantee atomic update of clock times before threads act on them.

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: