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

Make ReadThroughCache be driven by a vector clock

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • Sharding 2020-05-04, Sharding 2020-05-18, Sharding 2020-06-01
    • 0

    Description

      As part of this change, the ReadThroughCache's template should be made to accept a separate parameter called "Time" (or alternatively it could be a required method on the "Value" type), which should be a sortable class, containing the vector clock timestamp of each value in the cache.

      The invalidate* suite of methods should be replaced with an advanceTime(const Key& key, Time time) method which cause the in-memory time of the specified key to move forward, so that subsequent call to acquire need to keep loading until the value fetched from the persisted store reaches time.

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: