Click or drag to resize
IExtendedRetryPolicyOnRequestError Method
Defines whether to retry and at which consistency level on an unexpected error.

This method might be invoked in the following situations:

  1. On a client timeout, while waiting for the server response (see ReadTimeoutMillis).
  2. On a socket error (socket closed, etc.).
  3. When the contacted host replies with an OVERLOADED error or a SERVER_ERROR.

Note that when such an error occurs, there is no guarantee that the mutation has been applied server-side or not.

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.4.0
Syntax
C#
RetryDecision OnRequestError(
	IStatement statement,
	Configuration config,
	Exception ex,
	int nbRetry
)

Parameters

statement
Type: CassandraIStatement
The original query that failed.
config
Type: CassandraConfiguration
The current cluster configuration.
ex
Type: SystemException
The exception that caused this request to fail.
nbRetry
Type: SystemInt32
The number of retries already performed for this operation.

Return Value

Type: RetryDecision
See Also