Speculative execution responses received after the execution completed are not exposed in the RequestTracker / ClientMetrics

Description

When one of the speculative executions "wins", the RequestHandler cancels the rest of outgoing requests, removing the contexts/closures of those requests. When a response for those speculative executions is finally obtained, it isn't accounted by the RequestTracker or the ClientMetrics.

When implementing a fix for this issue we have to be sensitive about what context we maintain in order to still allow the GC to reclaim most of the memory associated with the execution.

Environment

None

Pull Requests

None

Assignee

Unassigned

Reporter

Jorge Bay Gondra

Reviewer

None

Fix versions

None

Labels

None

Components

None

PM Priority

None

Reproduced in

None

Pull Request

None

Priority

Major