test(grpc-data): H3 gate re-browses before held reads (projection authority lapses with the metadata lease)
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.
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user