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

commit and durable timestamps should be disallowed at stable timestamp

    • Storage Engines
    • Storage - Ra 2022-02-21
    • v5.0

      http://source.wiredtiger.com/develop/transactions.html#transaction_timestamps

      In the above document, we said that it is not allowed to commit a transaction at the current stable timestamp.

      However, in the code, it is actually allowed.

      if (has_stable_ts && durable_ts < stable_ts)
              WT_RET_MSG(session, EINVAL, "durable timestamp %s is less than the stable timestamp %s",
                __wt_timestamp_to_string(durable_ts, ts_string[0]),
                __wt_timestamp_to_string(stable_ts, ts_string[1]));
      
      if (has_stable_ts && commit_ts < stable_ts)
                  WT_RET_MSG(session, EINVAL, "commit timestamp %s is less than the stable timestamp %s",
                    __wt_timestamp_to_string(commit_ts, ts_string[0]),
                    __wt_timestamp_to_string(stable_ts, ts_string[1]));
      

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: