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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.0-rc2, WT3.0.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: