Skip to content

Commit 366f3e9

Browse files
author
liushengsong
committed
fix isolation2 use fast not intermediate mode in gpstop and pg_ctl
1 parent 62c788c commit 366f3e9

14 files changed

Lines changed: 25 additions & 25 deletions

src/test/isolation2/expected/gdd/end.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ALTER
66
-- Use utility session on seg 0 to restart master. This way avoids the
77
-- situation where session issuing the restart doesn't disappear
88
-- itself.
9-
1U:SELECT pg_ctl(dir, 'restart') from datadir;
9+
1U:SELECT pg_ctl(dir, 'restart', 'fast') from datadir;
1010
pg_ctl
1111
--------
1212
OK

src/test/isolation2/expected/gdd/prepare.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ALTER
7575
-- Use utility session on seg 0 to restart master. This way avoids the
7676
-- situation where session issuing the restart doesn't disappear
7777
-- itself.
78-
1U:SELECT pg_ctl(dir, 'restart') from datadir;
78+
1U:SELECT pg_ctl(dir, 'restart', 'fast') from datadir;
7979
pg_ctl
8080
--------
8181
OK

src/test/isolation2/expected/pg_rewind_fail_missing_xlog.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ INSERT 3
1919

2020
-- end_ignore
2121
(exited with code 0)
22-
!\retcode gpstop -ari;
22+
!\retcode gpstop -arf;
2323
(exited with code 0)
2424

2525
-- Test 1: Ensure that pg_rewind doesn't fail due to checkpoints inadvertently
@@ -543,7 +543,7 @@ server closed the connection unexpectedly
543543

544544
-- end_ignore
545545
(exited with code 0)
546-
!\retcode gpstop -ari;
546+
!\retcode gpstop -arf;
547547
-- start_ignore
548548
-- end_ignore
549549
(exited with code 0)
@@ -663,7 +663,7 @@ DROP
663663

664664
-- end_ignore
665665
(exited with code 0)
666-
!\retcode gpstop -ari;
666+
!\retcode gpstop -arf;
667667
-- start_ignore
668668
-- end_ignore
669669
(exited with code 0)

src/test/isolation2/expected/prepare_limit.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
-- Enable gp_autostats_mode to make sure the single value insert triger 2pc
1515
!\retcode gpconfig -c gp_autostats_mode -v 'on_no_stats' --skipvalidation;
1616
(exited with code 0)
17-
!\retcode gpstop -ari;
17+
!\retcode gpstop -arf;
1818
(exited with code 0)
1919

2020
5: create table prepare_limit1 (a int);
@@ -119,5 +119,5 @@ DROP
119119
(exited with code 0)
120120
!\retcode gpconfig -c gp_autostats_mode -v 'none' --skipvalidation;
121121
(exited with code 0)
122-
!\retcode gpstop -ari;
122+
!\retcode gpstop -arf;
123123
(exited with code 0)

src/test/isolation2/expected/resgroup/resgroup_syntax.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ DROP
563563
-- start_ignore
564564
-- end_ignore
565565
(exited with code 0)
566-
!\retcode gpstop -ari;
566+
!\retcode gpstop -arf;
567567
-- start_ignore
568568
-- end_ignore
569569
(exited with code 0)
@@ -579,7 +579,7 @@ DROP
579579
-- start_ignore
580580
-- end_ignore
581581
(exited with code 0)
582-
!\retcode gpstop -ari;
582+
!\retcode gpstop -arf;
583583
-- start_ignore
584584
-- end_ignore
585585
(exited with code 0)

src/test/isolation2/init_file_isolation2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ m/.*Process \d+ waits for ExclusiveLock on resource queue \d+; blocked by proces
4747
s/.*Process \d+ waits for ExclusiveLock on resource queue \d+; blocked by process \d+./Process PID waits for ExclusiveLock on resource queue OID; blocked by process PID./
4848

4949
# For resource queue self-deadlock detail
50-
m/resource queue id: \d+, portal id: \d+/
51-
s/resource queue id: \d+, portal id: \d+/resource queue id: OID, portal id: NUM/
50+
m/resource queue id: (\d+|XXXX), portal id: \d+/
51+
s/resource queue id: (\d+|XXXX), portal id: \d+/resource queue id: OID, portal id: NUM/
5252

5353
m/^Process \d+ waits for ShareLock on transaction \d+; blocked by process \d+./
5454
s/^Process \d+ waits for ShareLock on transaction \d+; blocked by process \d+./Process PID waits for ShareLock on transaction XID; blocked by process PID./

src/test/isolation2/input/workfile_mgr_test.source

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ language plpgsql volatile execute on all segments;
5757

5858
-- start_ignore
5959
!\retcode gpconfig -c gp_workfile_max_entries -v 32 --skipvalidation;
60-
!\retcode gpstop -ari;
60+
!\retcode gpstop -arf;
6161
-- end_ignore
6262

6363
-- setup for workfile made in temp tablespace test
@@ -80,7 +80,7 @@ language plpgsql volatile execute on all segments;
8080

8181
-- start_ignore
8282
!\retcode gpconfig -r gp_workfile_max_entries --skipvalidation;
83-
!\retcode gpstop -ari;
83+
!\retcode gpstop -arf;
8484
-- end_ignore
8585

8686
-- test workset cleanup

src/test/isolation2/output/workfile_mgr_test.source

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CREATE
3030

3131
-- end_ignore
3232
(exited with code 0)
33-
!\retcode gpstop -ari;
33+
!\retcode gpstop -arf;
3434
-- start_ignore
3535
20200923:12:05:57:014232 gpstop:mdw:gpadmin-[INFO]:-Starting gpstop with args: -ari
3636
20200923:12:05:57:014232 gpstop:mdw:gpadmin-[INFO]:-Gathering information and validating the environment...
@@ -132,7 +132,7 @@ DROP
132132

133133
-- end_ignore
134134
(exited with code 0)
135-
!\retcode gpstop -ari;
135+
!\retcode gpstop -arf;
136136
-- start_ignore
137137
20200923:12:08:05:016154 gpstop:mdw:gpadmin-[INFO]:-Starting gpstop with args: -ari
138138
20200923:12:08:05:016154 gpstop:mdw:gpadmin-[INFO]:-Gathering information and validating the environment...

src/test/isolation2/sql/bitmap_index_crash.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ create index on test_bitmap using bitmap(type);
4949
select count(*) from test_bitmap where type = 520;
5050

5151
-- start_ignore
52-
! gpstop -rai;
52+
! gpstop -raf;
5353
-- end_ignore
5454

5555
0: select count(*) from test_bitmap where type = 520;

src/test/isolation2/sql/gdd/end.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ALTER SYSTEM RESET gp_global_deadlock_detector_period;
44
-- Use utility session on seg 0 to restart master. This way avoids the
55
-- situation where session issuing the restart doesn't disappear
66
-- itself.
7-
1U:SELECT pg_ctl(dir, 'restart') from datadir;
7+
1U:SELECT pg_ctl(dir, 'restart', 'fast') from datadir;
88
-- Start new session on master to make sure it has fully completed
99
-- recovery and up and running again.
1010
1: SHOW gp_enable_global_deadlock_detector;

0 commit comments

Comments
 (0)