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

Make ReadThroughCache support asynchronous loading

    • Fully Compatible
    • Sharding 2020-03-09

      As part of this change the ReadThroughCache should be made to perform the loading asynchronously, on a separate thread rather than doing it inline on the thread of the caller to acquire.

      The asynchronous implementation should add the following methods to the API:

      • Future<ValueHandle> acquireAsync(const Key& key)
      • ValueHandle acquire(OperationContext* opCtx, const Key& key)

      If an invalidate is called for a key, which is being concurrently loaded, it is acceptable to interrupt the loading of the key if it is currently in progress, but the acquire should not fail.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            kevin.pulo@mongodb.com Kevin Pulo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: