pub enum ClusterError {
Show 46 variants
SchedulerError(String),
TaskNotFound(String),
DependencyCycle(String),
WorkerPoolError(String),
WorkerNotFound(String),
WorkerUnhealthy(String),
CapacityExceeded(String),
DataLocalityError(String),
DataNotAvailable(String),
FaultToleranceError(String),
MaxRetriesExceeded(String),
CheckpointError(String),
CacheError(String),
CoherencyViolation(String),
ReplicationError(String),
QuorumNotReached {
required: usize,
actual: usize,
},
ReplicaPlacementError(String),
CoordinatorError(String),
LeaderElectionFailed(String),
NoLeader,
ConsensusError(String),
MetricsError(String),
SerializationError(String),
NetworkError(String),
Timeout(String),
ConfigError(String),
ResourceExhausted(String),
InvalidState(String),
ExecutionError(String),
TaskCancelled(String),
Io(Error),
Json(Error),
RaftError(String),
QuotaExceeded(String),
ReservationNotFound(String),
ResourceNotAvailable(String),
InvalidOperation(String),
InvalidConfiguration(String),
WorkflowNotFound(String),
MetricNotFound(String),
AlertNotFound(String),
AuthenticationFailed(String),
PermissionDenied(String),
SecretNotFound(String),
CompressionError(String),
Other(String),
}Expand description
Main error type for cluster operations.
Variants§
SchedulerError(String)
Task scheduling errors
TaskNotFound(String)
Task not found
DependencyCycle(String)
Task dependency cycle detected
WorkerPoolError(String)
Worker pool errors
WorkerNotFound(String)
Worker not found
WorkerUnhealthy(String)
Worker unhealthy
CapacityExceeded(String)
Worker capacity exceeded
DataLocalityError(String)
Data locality errors
DataNotAvailable(String)
Data not available on any worker
FaultToleranceError(String)
Fault tolerance errors
MaxRetriesExceeded(String)
Maximum retries exceeded
CheckpointError(String)
Checkpoint error
CacheError(String)
Distributed cache errors
CoherencyViolation(String)
Cache coherency violation
ReplicationError(String)
Replication errors
QuorumNotReached
Quorum not reached
Fields
ReplicaPlacementError(String)
Replica placement error
CoordinatorError(String)
Coordinator errors
LeaderElectionFailed(String)
Leader election failed
NoLeader
No leader available
ConsensusError(String)
Consensus error
MetricsError(String)
Metrics collection error
SerializationError(String)
Serialization/deserialization errors
NetworkError(String)
Network communication errors
Timeout(String)
Timeout error
ConfigError(String)
Configuration error
ResourceExhausted(String)
Resource exhausted
InvalidState(String)
Invalid state
ExecutionError(String)
Task execution error
TaskCancelled(String)
Task cancelled
Io(Error)
IO errors
Json(Error)
JSON errors
RaftError(String)
Raft errors
QuotaExceeded(String)
Quota errors
ReservationNotFound(String)
Reservation errors
ResourceNotAvailable(String)
Resource not available
InvalidOperation(String)
Invalid operation
InvalidConfiguration(String)
Invalid configuration
WorkflowNotFound(String)
Workflow errors
MetricNotFound(String)
Monitoring errors
AlertNotFound(String)
Alert not found
AuthenticationFailed(String)
Security errors
PermissionDenied(String)
Permission denied
SecretNotFound(String)
Secret not found
CompressionError(String)
Compression error
Other(String)
Other errors
Implementations§
Source§impl ClusterError
impl ClusterError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Check if the error is retryable.
Sourcepub fn is_permanent(&self) -> bool
pub fn is_permanent(&self) -> bool
Check if the error indicates a permanent failure.
Sourcepub fn requires_failover(&self) -> bool
pub fn requires_failover(&self) -> bool
Check if the error requires failover.
Trait Implementations§
Source§impl Debug for ClusterError
impl Debug for ClusterError
Source§impl Display for ClusterError
impl Display for ClusterError
Source§impl Error for ClusterError
impl Error for ClusterError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()