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
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:
@@ -18,6 +18,9 @@ SELECT 1 / ((:life_identity = 1)::int);
|
||||
-- Capture parameters for PL/pgSQL exception assertions without string interpolation.
|
||||
SELECT set_config('test.holder', :'lease_holder', 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
|
||||
BEGIN
|
||||
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);
|
||||
SELECT * FROM evolution.reserve_primitive_life(9750,1,:'lease_holder',:lease_epoch,
|
||||
'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 * FROM evolution.reserve_primitive_life(9750,1,:'lease_holder',:lease_epoch,
|
||||
'11111111-1111-1111-1111-111111111111',1,10,1) \gset
|
||||
|
||||
Reference in New Issue
Block a user