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

Add an API to allow read timestamp to round up to oldest

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc2, WT3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Applications (including MongoDB) currently have to deal with a race, where they calculate a valid timestamp for a call to WT_SESSION::begin_transaction, but by the time WiredTiger goes to use the timestamp, another thread has updated oldest_timestamp to a more recent value.

      It would simplify application code if there were a flag to WT_SESSION::begin_transaction that caused the transaction to use the newer oldest_timestamp in this case rather than failing.

      Something like session->begin_transaction(session, "read_timestamp=100,round_to_oldest=true");

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vamsi.krishna Vamsi Boyapati
              Reporter:
              michael.cahill Michael Cahill
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: