test(grpc-data): #922 review r1 — batch, crowd-out, slow-origin, revoked/removed/invalidated; docs + evidence
This commit is contained in:
+15
-5
@@ -98,22 +98,32 @@ HistoryRead of such a node, the consumer first authorizes the caller against the
|
||||
(local grant + mapping bit, everything but the lease). A caller without the grant is still
|
||||
`BadUserAccessDenied` and nothing is sent to the origin. A granted caller gets the same exact
|
||||
`GetMetadata` renewal as above, for the operation it is performing (Read / HistoryRead bit, not
|
||||
Subscribe), one per node at a time, bounded by the unary budget, with a 250 ms back-off after a
|
||||
failure:
|
||||
Subscribe), one per node and operation at a time, with a 250 ms back-off after a failure. On-demand
|
||||
renewals never touch the unary budget (cold reads, writes) or the browse/subscription-renewal fetch
|
||||
slots: they queue (at most 64) for their own pool of `max(1, maxConcurrentFetches / 2)` origin calls,
|
||||
reserve 256 KiB each, and have 3 s end to end, so a batch of N lapsed nodes renews all N:
|
||||
|
||||
- **Value Read** answers `BadWaitingForInitialData` (as a cold read does) while the renewal runs off
|
||||
the request thread; once it commits, a read is scheduled so the client's retry is served from the
|
||||
fresh sample. `BadResourceUnavailable` while a renewal cannot be started (capacity, back-off).
|
||||
A non-Value attribute of a lapsed node answers `BadResourceUnavailable` while it renews.
|
||||
- **HistoryRead** renews within the request (one wait per batch, at most 5 s, no node-manager `Lock`
|
||||
held) and is then served; a renewal that cannot complete (origin unreachable) answers
|
||||
`BadResourceUnavailable`, never `BadUserAccessDenied`.
|
||||
- **HistoryRead** renews within the request and is then served. The wait (one per batch, at most 4 s
|
||||
and never past `HistoryReadDeadline`, no node-manager `Lock` held, the request's cancellation
|
||||
honoured) takes one of the non-local history batch slots first. A batch that finds none free does
|
||||
not wait. A renewal that cannot complete (origin unreachable or silent, no slot) answers
|
||||
`BadResourceUnavailable`. A renewal that succeeded while the node manager's ACL veto still refuses
|
||||
answers `BadUserAccessDenied`.
|
||||
- **Browse:** a cached page past half its lease is served as is *and* refreshed in the background
|
||||
(one refresh per page key), so a re-browse renews the leases of the nodes it lists.
|
||||
|
||||
An origin that stopped granting the operation fails the renewal; the consumer then keeps answering
|
||||
the retryable status (it cannot tell that from an unreachable origin).
|
||||
|
||||
Not covered yet: a **Write** or **CreateMonitoredItems** on a lapsed node is still refused
|
||||
`BadUserAccessDenied` (neither starts a renewal; a re-browse, a Read or a HistoryRead of the node
|
||||
renews it, after which they succeed). A lease that was revoked (`Invalidate`), a removed mapping and a
|
||||
retired node are refusals, not lapses, and are never renewed.
|
||||
|
||||
An authorized logical monitored-item request can survive a physical stream expiry and seek a new
|
||||
pinned binding with bounded retries. The old binding and any queued sample evidence remain tied to
|
||||
their original authority and serving generation. The same item needs a fresh, complete baseline
|
||||
|
||||
Reference in New Issue
Block a user