Exception: Cassandra::Errors::UnavailableError
- Inherits:
-
StandardError
- Object
- StandardError
- Cassandra::Errors::UnavailableError
- Includes:
- ExecutionError
- Defined in:
- lib/cassandra/errors.rb
Overview
Note:
This error can be handled by a Retry::Policy to determine the desired outcome.
Raised when coordinator determines that a request cannot be executed because there are not enough replicas. In this scenario, the request is not sent to the nodes at all.
Instance Attribute Summary collapse
-
#alive ⇒ Integer
readonly
The number of replicas available for the request.
-
#consistency ⇒ Symbol
readonly
Consistency level that triggered the error.
-
#required ⇒ Integer
readonly
The number of replicas required to achieve requested consistency level.
Method Summary
Methods included from ExecutionError
Instance Attribute Details
#alive ⇒ Integer (readonly)
Returns the number of replicas available for the request.
174 175 176 |
# File 'lib/cassandra/errors.rb', line 174 def alive @alive end |
#consistency ⇒ Symbol (readonly)
Consistency level that triggered the error.
167 168 169 |
# File 'lib/cassandra/errors.rb', line 167 def consistency @consistency end |
#required ⇒ Integer (readonly)
Returns the number of replicas required to achieve requested consistency level.
171 172 173 |
# File 'lib/cassandra/errors.rb', line 171 def required @required end |