Improve replay of compressed requests

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • ALL
    • None
    • 3
    • TBD
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Requests are recorded before decompression:

      SessionWorkflow::Impl::_dispatchWork()
      ...
          TrafficRecorder::get(_serviceContext).observe(session(), _work->in(), _serviceContext);
      
          _work->decompressRequest();
      

      During replay, requests do need to be modified (e.g., to re-write cursors to match state on the shadow cluster).

      However, replaying an uncompressed request which was originally received compressed reduces the similarity of the replayed workload - the server will read more data from the network, and not spend time decompressing.

      Investigate tracking compressed vs decompressed, and re-compress requests before submitting them to the shadow cluster, if required.

              Assignee:
              Unassigned
              Reporter:
              James Harrison
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: