Make ReadThroughCache support asynchronous loading

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2020-03-09
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Kevin Pulo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: