Improve error handling in request handlers

Description

There are a couple of places on the read path where an exception from ResponseCallback.onFailure would not be surfaced to the user. See InFlightHandler.

We should also always handle unexpected errors when we invoke user-overridable policies. For example, CqlRequestHandler does that correctly for retryPolicy.onReadTimeout/onWriteTimeout/onUnavailable, but not for retryPolicy.onRequestAborted or speculativeExecutionPolicy.nextExecution.

Environment

None

Pull Requests

None

Assignee

Olivier Michallat

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Minor
Configure