From 8f630bec980620bd094201d0ace90e10441b3db9 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 24 Nov 2026 02:02:49 -0500 Subject: [PATCH] test(grpc-data): H3 gate re-browses before held reads (projection authority lapses with the metadata lease) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found on the review re-run (H06d, SqlServer): a projected node read more than MetadataLeaseMilliseconds (15 s) after its last browse/renewal is BadUserAccessDenied — the same for a value Read (pre-existing v1 projection behaviour, confirmed in the Runtime harness), not an H3 defect. The gate now re-browses before each held read. --- scripts/validation/grpc-data/history_gate.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/validation/grpc-data/history_gate.py b/scripts/validation/grpc-data/history_gate.py index 6b1f85277..96cfa6a0c 100644 --- a/scripts/validation/grpc-data/history_gate.py +++ b/scripts/validation/grpc-data/history_gate.py @@ -266,7 +266,9 @@ class HistoryGate: with self.runner.stopped(source): observed["new_primary"] = self.runner.wait_primary("source", exclude=source) self.runner.wait_connection_ready(consumer, "raw") - # Resume INSIDE the stop window: the issuing endpoint is down, the pinned resume cannot move. + # Resume INSIDE the stop window: the issuing endpoint is down, the pinned resume cannot move. Re-browse first so + # the node's projection authority is current (it lapses with the 15 s metadata lease, as for a value Read). + self.rebrowse() self.held_resume_now() self.runner.wait_pair_topology("source") @@ -363,7 +365,9 @@ class HistoryGate: report["local_deny"] = {"raw": local, "uns": other, "attempts": attempts} self.restore() consumer = self.runner.primary("consumer") - # (c) a consumer session close releases the origin continuation. + # (c) a consumer session close releases the origin continuation. A projected node's authority lapses with its metadata + # lease (15 s) unless something renews it — the same for a value Read (pre-existing v1 behaviour) — so re-browse first. + self.rebrowse() self.runner.check(self.origin_state() == 0, "no origin continuation open before") counts = {} @@ -381,6 +385,7 @@ class HistoryGate: self.runner.check(after == 0, "the consumer session close released the origin continuation (store count back to 0)") report["session_close"] = {"held": counts.get("held"), "after": after, "lines": self.status_lines(abandoned.stdout)} # (d) origin rebuild mid-page: a resumed page after the origin's history epoch moved is BadContinuationPointInvalid. + self.rebrowse() def rebuild(): self.change(rename_tag={"tag_id": "source-array1", "name": "array1-renamed"}) rebuilt = self.held(consumer, ["-n", self.projected[("raw", "counter")], *self.window_args(), "--page-size", "3",