Order reservation conflict check before refusal
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (tsan) (push) Successful in 5s
Foundation / checks (postgres) (push) Successful in 47m55s
Foundation / server-image (push) Successful in 5s
Foundation / image (push) Successful in 5s
Foundation / postgres-tools (push) Successful in 20s

This commit is contained in:
dingo
2026-10-10 19:35:45 -04:00
parent ecbad78267
commit 4c4ab367f4
2 changed files with 10 additions and 1 deletions
+6
View File
@@ -5733,3 +5733,9 @@ durable `existing_life` refusal and allocates its own identity. Updated the chec
to assert the returned identity and rejection value, and aligned the reservation to assert the returned identity and rejection value, and aligned the reservation
contract text with v17. PostgreSQL is unavailable in this Windows environment; contract text with v17. PostgreSQL is unavailable in this Windows environment;
the focused and full database checks await CI. the focused and full database checks await CI.
The next run failed that assertion because the new request was first issued only
after the original reservation had been refused. Moved the first conflicting
request before that refusal, then kept the later call as an exact-retry check.
The latest SQL adjustment has not yet run in CI; PostgreSQL remains unavailable
locally.
+4 -1
View File
@@ -18,6 +18,9 @@ SELECT 1 / ((:life_identity = 1)::int);
-- Capture parameters for PL/pgSQL exception assertions without string interpolation. -- Capture parameters for PL/pgSQL exception assertions without string interpolation.
SELECT set_config('test.holder', :'lease_holder', false), SELECT set_config('test.holder', :'lease_holder', false),
set_config('test.epoch', :'lease_epoch', false); set_config('test.epoch', :'lease_epoch', false);
SELECT * FROM evolution.reserve_primitive_life(9750,1,:'lease_holder',:lease_epoch,
'11111111-1111-1111-1111-111111111111',:control_generation,11,1) \gset
SELECT 1 / ((:life_identity = 2 AND :rejection = 4)::int);
DO $$ BEGIN DO $$ BEGIN
BEGIN BEGIN
PERFORM evolution.reserve_primitive_life(9750,1,current_setting('test.holder')::uuid, PERFORM evolution.reserve_primitive_life(9750,1,current_setting('test.holder')::uuid,
@@ -41,7 +44,7 @@ SELECT 1 / ((evolution.reject_primitive_life(9750,1,:'lease_holder',:lease_epoch
'11111111-1111-1111-1111-111111111111',1,10,2::smallint) = 1)::int); '11111111-1111-1111-1111-111111111111',1,10,2::smallint) = 1)::int);
SELECT * FROM evolution.reserve_primitive_life(9750,1,:'lease_holder',:lease_epoch, SELECT * FROM evolution.reserve_primitive_life(9750,1,:'lease_holder',:lease_epoch,
'11111111-1111-1111-1111-111111111111',1,11,1) \gset '11111111-1111-1111-1111-111111111111',1,11,1) \gset
-- The conflicting request keeps its own allocated identity and immutable refusal. -- Exact retry keeps the conflict's allocated identity and immutable refusal.
SELECT 1 / ((:life_identity = 2 AND :rejection = 4)::int); SELECT 1 / ((:life_identity = 2 AND :rejection = 4)::int);
SELECT * FROM evolution.reserve_primitive_life(9750,1,:'lease_holder',:lease_epoch, SELECT * FROM evolution.reserve_primitive_life(9750,1,:'lease_holder',:lease_epoch,
'11111111-1111-1111-1111-111111111111',1,10,1) \gset '11111111-1111-1111-1111-111111111111',1,10,1) \gset