Class WriteFailureException
Represents a server-side failure (non-timeout) during a write query.
Inheritance
Implements
Inherited Members
Namespace: Dse
Assembly: Dse.dll
Syntax
public class WriteFailureException : QueryExecutionException, ISerializable
Constructors
WriteFailureException(ConsistencyLevel, Int32, Int32, String, IDictionary<IPAddress, Int32>)
Creates a new instance of WriteFailureException providing the failure reasons dictionary.
Declaration
public WriteFailureException(ConsistencyLevel consistency, int received, int required, string writeType, IDictionary<IPAddress, int> reasons)
Parameters
Type | Name | Description |
---|---|---|
ConsistencyLevel | consistency | |
System.Int32 | received | |
System.Int32 | required | |
System.String | writeType | |
System.Collections.Generic.IDictionary<System.Net.IPAddress, System.Int32> | reasons |
WriteFailureException(ConsistencyLevel, Int32, Int32, String, Int32)
Creates a new instance of WriteFailureException.
Declaration
public WriteFailureException(ConsistencyLevel consistency, int received, int required, string writeType, int failures)
Parameters
Type | Name | Description |
---|---|---|
ConsistencyLevel | consistency | |
System.Int32 | received | |
System.Int32 | required | |
System.String | writeType | |
System.Int32 | failures |
Properties
ConsistencyLevel
Gets the consistency level of the operation
Declaration
public ConsistencyLevel ConsistencyLevel { get; }
Property Value
Type | Description |
---|---|
ConsistencyLevel |
Failures
Gets the number of nodes that experienced a failure while executing the request.
Declaration
public int Failures { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Reasons
Gets a failure reason code for each node that failed.
On older protocol versions, an empty map and only the number of Failures is provided.
Declaration
public IDictionary<IPAddress, int> Reasons { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Net.IPAddress, System.Int32> |
ReceivedAcknowledgements
Gets the number of replica that had acknowledged/responded to the operation
Declaration
public int ReceivedAcknowledgements { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
RequiredAcknowledgements
Gets the minimum number of replica acknowledgements/responses that were required to fulfill the operation.
Declaration
public int RequiredAcknowledgements { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
WriteType
Gets the type of write operation that timed out.
Possible values: SIMPLE, BATCH, BATCH_LOG, UNLOGGED_BATCH and COUNTER.
Declaration
public string WriteType { get; }
Property Value
Type | Description |
---|---|
System.String |