Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,22 @@ SET
1Uq: ... <quitting>
1U:ALTER SYSTEM reset shared_buffers;
ALTER
-- Reset the checkpoint fault before the restart: gp_inject_fault connects
-- to every primary directly without retrying, while pg_ctl -w can return
-- before the restarted segment accepts connections.
3:SELECT gp_inject_fault_infinite('checkpoint', 'reset', dbid) FROM gp_segment_configuration WHERE role='p';
gp_inject_fault_infinite
--------------------------
Success:
Success:
Success:
Success:
(4 rows)
2:SELECT pg_ctl(datadir, 'restart') from gp_segment_configuration where role = 'p' and content = 1;
pg_ctl
--------
OK
(1 row)
-- start_ignore

-- end_ignore

3:SELECT gp_inject_fault('fts_probe', 'reset', dbid) FROM gp_segment_configuration WHERE role='p' AND content=-1;
gp_inject_fault
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@
-- teardown cleanup for the test
1Uq:
1U:ALTER SYSTEM reset shared_buffers;
2:SELECT pg_ctl(datadir, 'restart') from gp_segment_configuration where role = 'p' and content = 1;
-- start_ignore
-- Reset the checkpoint fault before the restart: gp_inject_fault connects
-- to every primary directly without retrying, while pg_ctl -w can return
-- before the restarted segment accepts connections.
3:SELECT gp_inject_fault_infinite('checkpoint', 'reset', dbid) FROM gp_segment_configuration WHERE role='p';
-- end_ignore
2:SELECT pg_ctl(datadir, 'restart') from gp_segment_configuration where role = 'p' and content = 1;

3:SELECT gp_inject_fault('fts_probe', 'reset', dbid) FROM gp_segment_configuration WHERE role='p' AND content=-1;
Loading