docs(grpc-data): lapsed-lease behaviour; H3 gate drops the re-browse workaround and idles past the lease (#922)
This commit is contained in:
@@ -90,6 +90,30 @@ reply cannot lengthen it. Renewal grants no parent or sibling visibility, Browse
|
||||
local Browse privilege. Missing capability, denied Metadata or an invalid lease leaves the item
|
||||
unavailable until valid authority can be established.
|
||||
|
||||
**A lapsed lease is not an access denial (#922).** A projected node idle longer than its mapping's
|
||||
`MetadataLeaseMilliseconds` keeps its retained proof; the lease is only *lapsed* when its time ran
|
||||
out or its route was replaced while the local catalog authority, mapping binding and cache
|
||||
generation are all still current and nothing revoked it. On a refused value Read / attribute Read /
|
||||
HistoryRead of such a node, the consumer first authorizes the caller against the lapsed subject
|
||||
(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:
|
||||
|
||||
- **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`.
|
||||
- **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).
|
||||
|
||||
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