Skip to content

Commit 27b7b9c

Browse files
author
liushengsong
committed
fix isolation2
1 parent 366f3e9 commit 27b7b9c

17 files changed

Lines changed: 51 additions & 44 deletions

src/bin/pg_basebackup/bbstreamer_file.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,15 @@ extract_directory(const char *filename, mode_t mode)
323323
* pg_xlog we assume is deleted at the start of
324324
* pg_basebackup. We cannot delete pg_xlog because if
325325
* streammode was used then it may have already copied
326-
* new xlog files into pg_xlog directory.
326+
* new xlog files into pg_xlog directory. Similarly,
327+
* archive_status may have .done files created by the
328+
* WAL streamer child process via mark_file_as_archived().
327329
*/
328330
if (pg_str_endswith(filename, "/pg_log") ||
329331
pg_str_endswith(filename, "/log") ||
330332
pg_str_endswith(filename, "/pg_wal") ||
331-
pg_str_endswith(filename, "/pg_xlog"))
333+
pg_str_endswith(filename, "/pg_xlog") ||
334+
pg_str_endswith(filename, "/archive_status"))
332335
return;
333336

334337
rmtree(filename, true);

src/test/isolation2/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test_parallel_retrieve_cursor_extended_query_error: test_parallel_retrieve_curso
2929
$(CC) $(CPPFLAGS) $(rpath) -I$(top_builddir)/src/interfaces/libpq -L$(GPHOME)/lib -L$(top_builddir)/src/interfaces/libpq -o $@ $< -lpq
3030

3131
pg_regress.o:
32-
$(MAKE) -C $(top_builddir)/src/test/regress pg_regress.o
32+
$(MAKE) -C $(top_builddir)/src/test/regress install
3333
rm -f $@ && $(LN_S) $(top_builddir)/src/test/regress/pg_regress.o .
3434

3535
gpstringsubs.pl:

src/test/isolation2/expected/bitmap_index_crash.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ select count(*) from test_bitmap where type = 520;
111111
(1 row)
112112

113113
-- start_ignore
114-
! gpstop -rai;
114+
! gpstop -raf;
115115
-- end_ignore
116116

117117
0: select count(*) from test_bitmap where type = 520;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
-- start_ignore
2-
! gpconfig -c gp_enable_query_metrics -v on; ! gpstop -rai;
2+
! gpconfig -c gp_enable_query_metrics -v on; ! gpstop -raf;
33
-- end_ignore

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ERROR: language "plpython3u" already exists
2727

2828
! gpconfig -c runaway_detector_activation_percent -v 100;
2929

30-
! gpstop -rai;
30+
! gpstop -raf;
3131
-- end_ignore
3232

3333
-- after the restart we need a new connection to run the queries

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ERROR: language "plpython3u" already exists
2727

2828
! gpconfig -c runaway_detector_activation_percent -v 100;
2929

30-
! gpstop -rai;
30+
! gpstop -raf;
3131
-- end_ignore
3232

3333
-- after the restart we need a new connection to run the queries

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ALTER RESOURCE GROUP
3030

3131

3232
-- start_ignore
33-
! gpstop -rai;
33+
! gpstop -raf;
3434
-- end_ignore
3535

3636
-- Cleanup in a new connection as the default one is disconnected by gpstop

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-- start_ignore
33
! gpconfig -r gp_resource_manager;
44

5-
! gpstop -rai;
5+
! gpstop -ra;
66

77
SHOW gp_resource_manager;
88
gp_resource_manager
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-- start_ignore
22
! gpconfig -c gp_enable_query_metrics -v on;
3-
! gpstop -rai;
3+
! gpstop -raf;
44
-- end_ignore

src/test/isolation2/sql/resgroup/resgroup_auxiliary_tools_v1.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CREATE LANGUAGE plpython3u;
2323
! gpconfig -c gp_resource_manager -v group;
2424
! gpconfig -c max_connections -v 250 -m 25;
2525
! gpconfig -c runaway_detector_activation_percent -v 100;
26-
! gpstop -rai;
26+
! gpstop -raf;
2727
-- end_ignore
2828

2929
-- after the restart we need a new connection to run the queries

0 commit comments

Comments
 (0)