StoreActivity

What a node saw of one store it calls: when a call last succeeded, since when the calls fail, and how many failed lately. The node records it on every call of its event logs and lease stores (trackedLog, trackedLeases); NodeHealth reads it, so a probe never calls a store itself.

A log's call fails when it throws StorageUnavailableException or its append's outcome is AppendOutcome.Unknown (the backend's contract for an unreachable store); any other exception is a defect, not an outage, and is not counted. A lease store's call fails on any exception: the ownership retries them all as transient.

Times are System.nanoTime() values, NONE when there is none.

Types

Link copied to clipboard

Properties

Link copied to clipboard

The first failure since the last success; NONE while the calls succeed.

Link copied to clipboard

What the store is to the node: LOG, LEASES, or a placed STORE instance.

Link copied to clipboard

The class of the last failure's exception, never its message (it may name hosts).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Which one: the context, and the store instance of a log group other than the default (context#store).

Link copied to clipboard

When the probe NodeHealth runs now started; NONE when none runs.

Functions

Link copied to clipboard

The failures in the last window, counted up to MAX_RECENT.

Link copied to clipboard
open override fun toString(): String