docs(grpc-data): H3 evidence — review fixes, gates and the H01-H06 re-run on both backends
This commit is contained in:
@@ -111,10 +111,41 @@ Earlier passes on `h3-sql` (pre-fix builds, same rig, `down` 0/0/0/0) found the
|
||||
cold projected nodes (`BadNodeIdUnknown` until re-browsed — the gate now re-browses after every deploy; a client reading a
|
||||
projected node it has not browsed since a deploy sees the same; pre-existing v1 projection behaviour).
|
||||
|
||||
## Review (Fable, approve-with-changes) — fixes
|
||||
|
||||
Each fix is a new commit; red/green by reverting the fix (mutation) and re-running its test, unless noted.
|
||||
|
||||
| # | Finding | Resolution | Red/green |
|
||||
|---|---|---|---|
|
||||
| D1 | A deadline during the connection's capability probe faulted the whole HistoryRead (`RpcException(Cancelled)` escaped) | `GrpcDataConnection` turns a caller cancel during the probe into `OperationCanceledException` and caps the probe by `HistoryTimeout`; `ProjectedHistoryAccess` fails any escaping fault per node (`BadTimeout` when the deadline fired) and releases every cursor it owns; the node manager's catch is total | client probe tests; wire test (`Hang`/`Throw`): local half of a mixed batch served, projected `BadTimeout` / `BadContinuationPointInvalid`, origin store back to 0 — both red on revert |
|
||||
| D2 | `Release()` after `TryClaimForResume()` was a no-op ⇒ claimed cursors leaked on post-claim exits | `ProjectedHistoryContinuation.ReleaseEvenIfClaimed()` (at most once) on every such exit: no gateway/identity, deadline spent, limiter rejection, gateway fault, count mismatch | O test over all four exits + a positive control (a normal resume does not release) — red on revert |
|
||||
| D3 | Projected reads could hold every history batch slot for up to 60 s | projected sub-limit N − max(1, N/4) (`OriginHistoryPort.RemoteSlots`), `Wait(0)` ⇒ `BadTooManyOperations` for the projected half | O test: 3 held projected reads at N=4, a 4th refused at once, a local read still served — red (hangs, bounded to 5 s) on revert |
|
||||
| D4 | A group larger than the lease/origin batch failed entirely | sub-batches ≤ min(lease batch, origin's advertised `MaxBatchItems`) and ≤ one item per 256 B of the remaining budget; shortfall ⇒ `BadTooManyOperations` per node | wire test: 3 nodes vs an origin batch of 2 ⇒ calls `[2, 1]`, all Good — red on revert |
|
||||
| D5 | A Remote cursor presented to a local node was taken and dropped | released in the local (raw/modified) and events take paths | O test — red on revert |
|
||||
| D6 | Release flush lost wake-up; `_stop` disposed under a running flush | `_flushScheduled` flag under the gate; `_stop` only cancelled | 2,000 concurrent enqueues all released — **not shown red** (the race did not reproduce with the fix reverted); kept as a regression check |
|
||||
| D7 | Budget charged in group order | calls are runs of consecutive request positions read in request order, then charged in request order | wire test [A fresh, B resumed, C fresh] with room for two: C refused, not B — red on revert |
|
||||
| Float32 | Double from the backend for a Float32 node | **no defect**: the origin port normalises Raw/AtTime to the node's type (Single) before the wire; Runtime test + live legs (H01/H03: Good Singles = origin) | — |
|
||||
| H06(a) | Origin-ACL denial exercised only via metadata | also read through the consumer's deployed connection (node probe): denied and unhistorized both `0x80720000`, identical pages; the origin's inbound data requests 73 ⇒ 79 | live |
|
||||
| Nits | page API default-throwing; probe uncapped; `int` cast; CLI doc | `HistoryReadPageAsync` abstract (fakes implement it); probe capped by `HistoryTimeout`; budgets stay `long`; `Client.CLI.md` notes `--aggregate` now sends `UseServerCapabilitiesDefaults = true` | — |
|
||||
|
||||
**Gates after the fixes** (HEAD `60e594ddd`): build 0/0; `run-unit-phase.py` H3, H2, H1, X0 passed; OI `Feature=GrpcData` + history
|
||||
87 passed (2 AVEVA skips); OpcUaServer 1418 (+1 skip), Runtime 1890 (+3 skips), Host 479, Client.CLI 224, Client.Shared 361, Client.UI 131;
|
||||
rig harness tests OK.
|
||||
|
||||
**Live re-run** (fresh `h3r3-sqlserver` 07:19–07:28 and `h3r3-questdb` 07:28–07:35 UTC at `60e594ddd`, normal build checks): H01–H06
|
||||
**all PASS on both backends** (H06 238 assertions each); Float32 legs Good Singles equal to the origin; H06(c) origin continuations 1
|
||||
while held, 0 after the session closed; `down` ⇒ 0/0/0/0 for both runs.
|
||||
|
||||
**Found on the re-run (pre-existing v1 projection behaviour, not an H3 defect — for a follow-up):** an idle projected node's
|
||||
authority lapses with its 15 s `MetadataLeaseMilliseconds`; any read after that is `BadUserAccessDenied` — a value Read exactly as a
|
||||
HistoryRead (reproduced in the Runtime harness) — and a re-browse served from the still-cached browse page does not renew it
|
||||
(live: the H06 rebuild leg denied right after a re-browse). The gate now starts each held leg right after a deploy + re-browse.
|
||||
|
||||
## Not verified / substitutions
|
||||
|
||||
- **H05**: the rig builds no pinned v1 image, so "v1 origin" is substituted by an origin that does not advertise history for the
|
||||
principal (export without bit 32). The v1 wire shape itself is covered by the H2 recorded-v1-client gates.
|
||||
principal (export without bit 32). The v1 wire shape itself is covered by the H2 recorded-v1-client gates; the live v1-origin
|
||||
path is follow-up **#921**.
|
||||
- **H01 tie clusters**: not representable live on either backend — SqlServer `hist.Sample` PK `(TagId, SourceTimeUtc)`, QuestDB
|
||||
`DEDUP UPSERT KEYS(ts, tag)` keep one sample per timestamp. Tie paging is proven by the H1 port fuzz (10k seeds).
|
||||
- **ReadyReplica consistency** on projected history and the Gateway backend (H4) were not run.
|
||||
|
||||
Reference in New Issue
Block a user