ParkedAggregate
One parked aggregate: subscription stopped handling ref, in its source's partition, at its stream fromVersion, at failedAt (epoch milliseconds), because of reason. The owner of partition retries it.
fromPosition is where that stream lies in the subscription's source when the source cannot be read by aggregate: the offset of its record in another context's topic, whose partition the ref's key always maps to. A retry re-scans that partition from it, keeping the records keyed by ref. Null for a subscription of the log, which reads an aggregate's streams by version. A topic of commands or receipts commits nothing, so its subscription parks at fromVersion 1 and goes by fromPosition alone.
skipOnly is set when the source no longer holds what the entry is parked from: its fromPosition is not retained any more, or the aggregate's records are now in another partition. Such an entry is never retried, automatically or by an operator, whatever it is marked (recoverable): it can only be skipped. reason is then the text that says why, nothing more.
Its long-horizon retry state: the owner of the aggregate's partition retries the entry automatically by a ParkedRetrySpec (retrySpec when an operator applied one, else the subscription's), retries times so far, the last one started at lastRetryAt (epoch milliseconds). recoverable is what an operator marked it: an entry marked Recoverable.UNRECOVERABLE is not retried automatically, though it can still be retried by hand. request is an operator's retry or skip that the partition's owner has not taken yet.
nextAttemptAt (epoch milliseconds) is when the owner next looks at the entry: the next automatic retry it computed by the spec, NEVER for one that is not retried automatically, null until it has looked. Only the owner sets it (ParkedAmendment.Schedule); a retry claimed, and an operator's change of the entry, clear it, so the owner looks at the entry again on its next scan (FailureLedger.due). A retry spec changed in the host's configuration applies to an entry from the retry after the one it is scheduled for.
revision is the ledger's concurrency token, not an operator's fact: the number of stored changes of the entry since it parked (FailureLedger). A new entry is at 0, whatever it is constructed with.
fromIncarnation is the incarnation of the topic whose offset fromPosition is (me.ahoo.wow.spi.transport.PartitionedSource.incarnation): null for a log, and for a source that tells none. The ledger stores and returns it; what an entry of another incarnation means is its subscription's to decide.
Fields may be added: construct one with of; the constructor is internal to Wow.
Constructors
Properties
Functions
This entry with amendment applied at the next revision, or null when the amendment names a revision read that the entry is no longer at, or an operator's parking (ParkedAmendment.MarkRecoverable.failedAt and the like) that is not this entry's: the reference semantics of FailureLedger.amend, for a backend that changes the entry in memory. Every amendment but a ParkedAmendment.Schedule and a ParkedAmendment.ClaimRequest, which set it, and a ParkedAmendment.TakeRequest clears ParkedAggregate.nextAttemptAt, so the owner looks at the entry again on its next scan.
This ParkedAggregate with the given fields replaced: Wow's own copy, left out of the ABI.
Whether this entry is due at now in one of partitions (FailureLedger.due): the reference semantics, for a backend that filters in memory.
Whether spec's retries are spent: the entry is not retried automatically any more (9.x: not retryable).
When the next automatic retry under spec is due (epoch milliseconds), as 9.x computes it: spec's minimum backoff, doubled per retry made, after the last retry started (after the failure, before the first one), and not before the last retry's claim expired (ParkedRetrySpec.claimTtl), so a retry that may still run on the partition's former owner is not started twice. Null when the entry is not retryable.
This entry where entry parks the aggregate (its partition, from version, position and the incarnation of the topic it is of, and whether it can only be skipped) and why (its reason and failure time), with this entry's retry state, at the next revision and no longer scheduled; an operator's request is kept only while the failure time is: one left for another parking is cleared. The reference semantics of a FailureLedger.repark, and of a FailureLedger.park that replaces an entry.