Class FailureClassifier
This is the correctness crux of failover. If an application error - writing an entry whose id already exists, say - were counted as a cluster failure, a single bad call repeated in a loop would fail an entire site over. So the default is deliberately the safe one: anything not recognised as a transport or discovery failure counts as an application error and leaves cluster health untouched.
Quiesce is its own verdict: the space is alive and reachable but refusing operations, which is neither a failure to count nor a success to ignore.
Recognition walks the cause chain, because GigaSpace translates space exceptions into
Spring's DataAccessException hierarchy and the transport failure ends up nested inside.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhat an exception tells us about the cluster that threw it. -
Method Summary
Modifier and TypeMethodDescriptionstatic FailureClassifier.VerdictClassifies a throwable by walking its cause chain.static booleanisUnavailable(Throwable throwable) True when this exception means "the cluster is not reachable".
-
Method Details
-
classify
Classifies a throwable by walking its cause chain.Quiesce is looked for along the whole chain before anything else: the clustered router reports a quiesced primary as a
RemoteException("Failed to find an active server") with the quiesce nested inside, and that outer transport exception must not hide it.
-