There were not enough live replicas to satisfy the requested consistency level, so the coordinator node immediately failed the request without forwarding it to any replicas.
| 398 | |
| 399 | |
| 400 | class Unavailable(RequestExecutionException): |
| 401 | """ |
| 402 | There were not enough live replicas to satisfy the requested consistency |
| 403 | level, so the coordinator node immediately failed the request without |
| 404 | forwarding it to any replicas. |
| 405 | """ |
| 406 | |
| 407 | consistency = None |
| 408 | """ The requested :class:`ConsistencyLevel` """ |
| 409 | |
| 410 | required_replicas = None |
| 411 | """ The number of replicas that needed to be live to complete the operation """ |
| 412 | |
| 413 | alive_replicas = None |
| 414 | """ The number of replicas that were actually alive """ |
| 415 | |
| 416 | def __init__(self, summary_message, consistency=None, required_replicas=None, alive_replicas=None): |
| 417 | self.consistency = consistency |
| 418 | self.required_replicas = required_replicas |
| 419 | self.alive_replicas = alive_replicas |
| 420 | Exception.__init__(self, summary_message + ' info=' + |
| 421 | repr({'consistency': consistency_value_to_name(consistency), |
| 422 | 'required_replicas': required_replicas, |
| 423 | 'alive_replicas': alive_replicas})) |
| 424 | |
| 425 | |
| 426 | class Timeout(RequestExecutionException): |
no outgoing calls