cassandra
Cassandra CQL Error Codes
Numeric error codes returned in ERROR responses by the Cassandra CQL native binary protocol. Defined in the native protocol specification and returned by Cassandra nodes to client drivers.
20 codes
· All codes 20 codes
- ALREADY_EXISTS Already Exists A CREATE TABLE or CREATE KEYSPACE statement failed because the named table or keyspace already exists. The error body includes the keyspace and table names.
- AUTH_ERROR Authentication Error Authentication with the server failed; the provided credentials were not accepted or authentication was required but not supplied.
- CAS_WRITE_UNKNOWN CAS Write Unknown A lightweight transaction (compare-and-set) write timed out and it is unknown whether the mutation was applied. The error body includes the consistency level, required Paxos phase acknowledgements, and received acknowledgements.
- CDC_WRITE_FAILURE CDC Write Failure A write to a Change Data Capture (CDC)-enabled table failed because the CDC log space on the coordinator is full. The write was not applied.
- CONFIG_ERROR Config Error The query is invalid due to a configuration issue on the server, such as attempting to use a feature that requires specific server configuration not currently enabled.
- FUNCTION_FAILURE Function Failure A user-defined function (UDF) threw an exception during execution. The error body includes the keyspace, function name, and argument types of the failing function.
- INVALID Invalid The submitted query is syntactically valid but semantically invalid; for example, it references a table or column that does not exist, or uses an operation not applicable to the target type.
- IS_BOOTSTRAPPING Is Bootstrapping The coordinator node is currently bootstrapping and cannot serve requests. The client should retry the request against a different node.
- OVERLOADED Overloaded The coordinator node is overloaded and unable to process the request at this time. The client should retry the request, potentially against a different coordinator.
- PROTOCOL_ERROR Protocol Error The client sent a message that violates the native protocol specification. The error body contains a message describing the violation.
- READ_FAILURE Read Failure A read request failed because one or more replicas returned an error rather than a timeout. The error body includes the consistency level, required responses, received responses, number of failures, and whether the data was retrieved.
- READ_TIMEOUT Read Timeout A read request timed out before sufficient replicas responded to meet the requested consistency level. The error body includes the consistency level, required responses, received responses, and whether the data was retrieved.
- SERVER_ERROR Server Error An unexpected error occurred on the server. This is a catch-all for internal server failures that do not map to a more specific error code.
- SYNTAX_ERROR Syntax Error The submitted CQL query has a syntax error and could not be parsed. The error message contains details about the location and nature of the syntax error.
- TRUNCATE_ERROR Truncate Error An error occurred while executing a TRUNCATE statement. The operation may have partially completed on some replicas.
- UNAUTHORIZED Unauthorized The authenticated user does not have permission to execute the requested operation. This differs from AUTH_ERROR, which indicates a failure to authenticate.
- UNAVAILABLE Unavailable The request could not be satisfied because insufficient replicas were alive to meet the requested consistency level. The error body includes the consistency level, required replicas, and alive replicas.
- UNPREPARED Unprepared The server does not recognise the prepared statement ID sent in an EXECUTE request, typically because the statement was evicted from the server's prepared statement cache. The client should re-prepare the statement and retry.
- WRITE_FAILURE Write Failure A write request failed because one or more replicas returned an error rather than a timeout. The error body includes the consistency level, required acknowledgements, received acknowledgements, number of failures, and the write type.
- WRITE_TIMEOUT Write Timeout A write request timed out before sufficient replicas acknowledged the write to meet the requested consistency level. The error body includes the consistency level, required acknowledgements, received acknowledgements, and the write type.