Parsed test spec with 2 sessions

starting permutation: s1-begin s1-update-node-1 s2-update-node-2 s1-commit s1-show-nodes
nodeid         nodename       nodeport

22             localhost      57637
23             localhost      57638
step s1-begin:
	BEGIN;

step s1-update-node-1:
    SELECT 1 FROM master_update_node(
        (select nodeid from pg_dist_node where nodeport = 57637),
        'localhost',
        58637);

?column?

1
step s2-update-node-2:
    SELECT 1 FROM master_update_node(
        (select nodeid from pg_dist_node where nodeport = 57638),
        'localhost',
        58638);
 <waiting ...>
step s1-commit:
	COMMIT;

step s2-update-node-2: <... completed>
?column?

1
step s1-show-nodes:
    SELECT nodeid, nodename, nodeport, isactive
      FROM pg_dist_node
  ORDER BY nodename, nodeport;

nodeid         nodename       nodeport       isactive

22             localhost      58637          t
23             localhost      58638          t
nodeid         nodename       nodeport


starting permutation: s1-begin s1-update-node-1 s2-begin s2-update-node-1 s1-commit s2-abort s1-show-nodes
nodeid         nodename       nodeport

24             localhost      57637
25             localhost      57638
step s1-begin:
	BEGIN;

step s1-update-node-1:
    SELECT 1 FROM master_update_node(
        (select nodeid from pg_dist_node where nodeport = 57637),
        'localhost',
        58637);

?column?

1
step s2-begin:
	BEGIN;

step s2-update-node-1:
    SELECT 1 FROM master_update_node(
        (select nodeid from pg_dist_node where nodeport = 57637),
        'localhost',
        58637);
 <waiting ...>
step s1-commit:
	COMMIT;

step s2-update-node-1: <... completed>
?column?

1
step s2-abort:
	ABORT;

step s1-show-nodes:
    SELECT nodeid, nodename, nodeport, isactive
      FROM pg_dist_node
  ORDER BY nodename, nodeport;

nodeid         nodename       nodeport       isactive

25             localhost      57638          t
24             localhost      58637          t
nodeid         nodename       nodeport


starting permutation: s1-begin s1-update-node-1 s2-start-metadata-sync-node-2 s1-commit s2-verify-metadata
nodeid         nodename       nodeport

26             localhost      57637
27             localhost      57638
step s1-begin:
	BEGIN;

step s1-update-node-1:
    SELECT 1 FROM master_update_node(
        (select nodeid from pg_dist_node where nodeport = 57637),
        'localhost',
        58637);

?column?

1
step s2-start-metadata-sync-node-2:
    SELECT start_metadata_sync_to_node('localhost', 57638);
 <waiting ...>
step s1-commit:
	COMMIT;

step s2-start-metadata-sync-node-2: <... completed>
start_metadata_sync_to_node


step s2-verify-metadata:
    SELECT nodeid, groupid, nodename, nodeport FROM pg_dist_node ORDER BY nodeid;
    SELECT master_run_on_worker(
        ARRAY['localhost'], ARRAY[57638],
        ARRAY['SELECT jsonb_agg(ROW(nodeid, groupid, nodename, nodeport) ORDER BY nodeid) FROM  pg_dist_node'],
        false);

nodeid         groupid        nodename       nodeport

26             26             localhost      58637
27             27             localhost      57638
master_run_on_worker

(localhost,57638,t,"[{""f1"": 26, ""f2"": 26, ""f3"": ""localhost"", ""f4"": 58637}, {""f1"": 27, ""f2"": 27, ""f3"": ""localhost"", ""f4"": 57638}]")
nodeid         nodename       nodeport

