Draining

data class Draining(val child: GroupId, val edge: AttachmentId, val outstanding: Long, val blockingLeases: List<Lease>) : StepRefusal

edge, which is child's own edge or that of a waiting group above child (see below), still carries outstanding units, or an open lease, so it cannot retire yet: the change waits for that work to finish. blockingLeases are this engine's open leases whose path crosses edge, in id order; complete or cancel them, or settle them through LocalHeddle.reconcileLeases if their work is gone, and apply again.

outstanding is the units on edge, and 0 when every lease there reserves nothing (one LocalHeddle.shrinked whole, or admitted past the lifetime limit): the wait is then the leases, which blockingLeases names, never empty in that case.

A removal that waits has already closed edge, so nothing new is leased across it. A reweight that waits, because a lease beneath it sits under a child the same reload removes, has changed nothing: edge stays as it was, ACTIVE for a reweight, or still CLOSING for a child put back before its removal drained, and keeps its history until its leases can move.

A group an apply or LocalHeddle.attach would activate beneath a group that waits, in this call or since an earlier one, is held back with it, since the root could not reach it until that group lands: it is reported as Draining too, and edge, outstanding and blockingLeases are then that group's.

Constructors

Link copied to clipboard
constructor(child: GroupId, edge: AttachmentId, outstanding: Long, blockingLeases: List<Lease>)

Properties

Link copied to clipboard
Link copied to clipboard
open override val child: GroupId

The group whose change did not land.

Link copied to clipboard
Link copied to clipboard