...
List of system workers should be covered by this engine:
disco-event-worker
tcp-disco-sock-reader
tcp-disco-srvr
tcp-disco-msg-worker
tcp-comm-worker
grid-nio-worker-tcp-comm
exchange-worker
sys-stripe
grid-timeout-worker
db-checkpoint-thread
wal-file-archiver
wal-write-worker
ttl-cleanup-worker
nio-acceptor
List of errors to be handled
IgniteConfiguration
have to be extended with methods
Code Block | ||
---|---|---|
| ||
public IgniteConfiguration setIgniteFailureHandler(IgniteFailureHandler igniteFailureHnd) |
...
; public IgniteFailureHandler getIgniteFailureHandler(); |
Where
Code Block | ||
---|---|---|
| ||
interface IgniteFailureHandler |
...
{ IgniteFailureAction onFailure(IgniteFailureContext failureCtx); |
...
} |
...
class IgniteFailureContext |
...
enum IgniteFailureAction {
RESTART_JVM,
STOP,
NOOP;
}
...
{ IgniteFailureType type; Throwable cause; } enum IgniteFailureAction { RESTART_JVM, STOP, NOOP; } enum IgniteFailureType { SEGMENTATION, SYSTEM_WORKER_CRASHED, CRITICAL_ERROR } |
So, provided by user subclass of of IgniteFailureHandler
able to decide what to do (see. IgniteFailureAction
) on each registered failure (see. IgniteFailureContext
).
// Describe project risks, such as API or binary compatibility issues, major protocol changes, etc.
...