LeaseStoreSpec
The LeaseStore contract (documentation/designs/04-subscriptions.md §1) every backend passes. A backend's test extends it and supplies a store whose time comes from clock; each test uses its own group, so the tests may share one table.
Inheritors
Functions
A crashed node's record stays behind (#6703): a heartbeat deletes the records of its key expired for more than LeaseStore.EXPIRED_MEMBER_TTLS TTLs, and keeps the ones expired for less, the live ones and other keys'. The store is read as it stood at the start, where a kept record shows and a deleted one does not.
Membership is recorded per service, with the lease groups a node serves on its one record: a heartbeat replaces them, and a record without groups lists none.
A member record carries the node's version of Wow (WowVersion.CURRENT), or none, read back as written.