Click or drag to resize

WriteFailureException Class

Represents a server-side failure (non-timeout) during a write query.
Inheritance Hierarchy
SystemObject
  SystemException
    DseDriverException
      DseQueryValidationException
        DseQueryExecutionException
          DseWriteFailureException

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.6.0
Syntax
C#
public class WriteFailureException : QueryExecutionException

The WriteFailureException type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyConsistencyLevel
Gets the consistency level of the operation
Public propertyData
Gets a collection of key/value pairs that provide additional user-defined information about the exception.
(Inherited from Exception.)
Public propertyFailures
Gets the number of nodes that experienced a failure while executing the request.
Public propertyHelpLink
Gets or sets a link to the help file associated with this exception.
(Inherited from Exception.)
Public propertyHResult
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.
(Inherited from Exception.)
Public propertyInnerException
Gets the Exception instance that caused the current exception.
(Inherited from Exception.)
Public propertyMessage
Gets a message that describes the current exception.
(Inherited from Exception.)
Public propertyReasons
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.

0x0000Unknown reason0x0001Too many tombstones read (as controlled by the yaml tombstone_failure_threshold option)0x0002The query uses an index but that index is not available (built) on the queried endpoint.0x0003The query writes on some CDC enabled tables, but the CDC space is full (CDC data isn't consumed fast enough). Note that this can only happen in Write_failure in practice, but the reasons are shared between both exception.0x0004Some failures (one or more) were reported to the replica "leading" a counter write. The actual error didn't occur on the node that sent this failure, it is is simply the node reporting it due to how counter writes work; the initial reason for the failure should have been logged on the actual replica on which the problem occured).0x0005The table used by the query was not found on at least one of the replica. This strongly suggest a query was done on either a newly created or newly dropped table with having waited for schema agreement first.0x0006The keyspace used by the query was not found on at least one replica. Same likely cause as for tables above.
Public propertyReceivedAcknowledgements
Gets the number of replica that had acknowledged/responded to the operation
Public propertyRequiredAcknowledgements
Gets the minimum number of replica acknowledgements/responses that were required to fulfill the operation.
Public propertySource
Gets or sets the name of the application or the object that causes the error.
(Inherited from Exception.)
Public propertyStackTrace
Gets a string representation of the immediate frames on the call stack.
(Inherited from Exception.)
Public propertyTargetSite
Gets the method that throws the current exception.
(Inherited from Exception.)
Public propertyWriteType
Gets the type of write operation that timed out.

Possible values: SIMPLE, BATCH, BATCH_LOG, UNLOGGED_BATCH and COUNTER.

Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetBaseException
When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.
(Inherited from Exception.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectData
When overridden in a derived class, sets the SerializationInfo with information about the exception.
(Inherited from Exception.)
Public methodGetType
Gets the runtime type of the current instance.
(Inherited from Exception.)
Public methodToString
Creates and returns a string representation of the current exception.
(Inherited from Exception.)
Top
See Also

Reference