Skip to content

CASSANDRA-19562: DefaultLoadBalancingPolicy considers a TimeOut as a response#1927

Closed
SiyaoIsHiding wants to merge 1 commit intoapache:4.xfrom
SiyaoIsHiding:timeout-not-response
Closed

CASSANDRA-19562: DefaultLoadBalancingPolicy considers a TimeOut as a response#1927
SiyaoIsHiding wants to merge 1 commit intoapache:4.xfrom
SiyaoIsHiding:timeout-not-response

Conversation

@SiyaoIsHiding
Copy link
Copy Markdown
Contributor

No description provided.

@NonNull Node node,
@NonNull String logPrefix) {
updateResponseTimes(node);
if (!(error instanceof DriverTimeoutException)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SiyaoIsHiding are you sure this can happen? My recollection is that when a driver timeout happens, the query is aborted and RequestTracker.onError() is invoked, not RequestTracker.onNodeError().

setFinalError(
initialStatement,
new DriverTimeoutException("Query timed out after " + timeoutDuration),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants