Click or drag to resize
DowngradingConsistencyRetryPolicyOnReadTimeout Method
Defines whether to retry and at which consistency level on a read timeout.

This method triggers a maximum of one retry. If less replica responsed than required by the consistency level (but at least one replica did respond), the operation is retried at a lower consistency level. If enough replica responded but data was not retrieve, the operation is retried with the initial consistency level. Otherwise, an exception is thrown.

Namespace: Cassandra
Assembly: Cassandra (in Cassandra.dll) Version: 3.2.0
Syntax
C#
public RetryDecision OnReadTimeout(
	IStatement query,
	ConsistencyLevel cl,
	int requiredResponses,
	int receivedResponses,
	bool dataRetrieved,
	int nbRetry
)

Parameters

query
Type: CassandraIStatement
the original query that timeouted.
cl
Type: CassandraConsistencyLevel
the original consistency level of the read that timeouted.
requiredResponses
Type: SystemInt32
the number of responses that were required to achieve the requested consistency level.
receivedResponses
Type: SystemInt32
the number of responses that had been received by the time the timeout exception was raised.
dataRetrieved
Type: SystemBoolean
whether actual data (by opposition to data checksum) was present in the received responses.
nbRetry
Type: SystemInt32
the number of retry already performed for this operation.

Return Value

Type: RetryDecision
a RetryDecision as defined above.

Implements

IRetryPolicyOnReadTimeout(IStatement, ConsistencyLevel, Int32, Int32, Boolean, Int32)
See Also