Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-62383

Use durable_timestamp instead of commit_timestamp for set_timestamp

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Storage - Ra 2022-01-24
    • 2

      There are several places in mongodb where set_timestamp is called with the commit_timestamp config. This is deprecated and they should be changed to durable_timestamp.

                  auto commitTSConfigString = "commit_timestamp={:x}"_format(truncTs.asULL());
                  invariantWTOK(conn->set_timestamp(conn, commitTSConfigString.c_str()));
      
              auto oldestTSConfigString =
                  "force=true,oldest_timestamp={0:x},commit_timestamp={0:x}"_format(
                      newOldestTimestamp.asULL());
              invariantWTOK(_conn->set_timestamp(_conn, oldestTSConfigString.c_str()));
      
          if (force) {
              stableTSConfigString =
                  "force=true,oldest_timestamp={0:x},commit_timestamp={0:x},stable_timestamp={0:x}"_format(
                      ts);
              stdx::lock_guard<Latch> lk(_highestDurableTimestampMutex);
              _highestSeenDurableTimestamp = ts;
          } else {
              stableTSConfigString = "stable_timestamp={:x}"_format(ts);
          }
          invariantWTOK(_conn->set_timestamp(_conn, stableTSConfigString.c_str()));
      

            Assignee:
            fiona.ochee@mongodb.com Fiona O'Chee (Inactive)
            Reporter:
            fiona.ochee@mongodb.com Fiona O'Chee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: