Skip to content

PrimaryBasedLogViewAdaptor<TLogView, TLogEntry, TSubmissionEntry> Fields

A general template for constructing log view adaptors that are based on a sequentially read and written primary. We use this to construct a variety of different log-consistency providers, all following the same basic pattern (read and write latest view from/to primary, and send notifications after writing).

Note that the log itself is transient, i.e. not actually saved to storage - only the latest view and some metadata (the log position, and write flags) is stored in the primary. It is safe to interleave calls to this adaptor (using grain scheduler only, of course).

Subclasses override ReadAsync and WriteAsync to read from / write to primary. Calls to the primary are serialized, i.e. never interleave.

LastPrimaryIssue

View source
protected RecordedConnectionIssue PrimaryBasedLogViewAdaptor<TLogView, TLogEntry, LastPrimaryIssue
Store the last issue that occurred while reading or updating primary. Is null if successful.

stats

View source
protected LogConsistencyStatistics? PrimaryBasedLogViewAdaptor<TLogView, TLogEntry, stats