提交 32ee826d 编写于 作者: J Jacob Champion 提交者: Xin Zhang

commit_blocking: attempt to fix CI flake

There is a race condition in this test, where our disabling of the FTS
probe process doesn't actually have to happen immediately (it takes a
little while for the GUC to propagate). This may be the cause of some
test failures we see where the primary is falling out of sync with the
mirror before we want it to.

Try a basic hack to see if it helps anything; the real fix will be to
move to faultinjection, but that's another story.

Author: Ashwin Agrawal <aagrawal@pivotal.io>
Author: Jacob Champion <pchampion@pivotal.io>
上级 9c428f92
......@@ -31,6 +31,17 @@ CREATE
insert into segwalrep_commit_blocking values (1);
INSERT 1
-- WALREP_FIXME: we don't wait for the GUC to propagate to the ftsprobe process; it's
-- possible that one final probe could get through after we shut down the mirror
-- in the next line and throw off the test (since if the mirror is marked down,
-- the primary won't block). As a temporary nasty hack, try to reduce possible
-- flake by issuing a probe manually, which will delay the next one by a minute.
select gp_request_fts_probe_scan();
gp_request_fts_probe_scan
-------------------------
t
(1 row)
-- turn off fts
! gpconfig -c gp_fts_probe_pause -v true --masteronly --skipvalidation;
20180104:13:17:57:019143 gpconfig:station1:csteam-[INFO]:-completed successfully with parameters '-c gp_fts_probe_pause -v true --masteronly --skipvalidation'
......
......@@ -32,6 +32,13 @@ select content, role, preferred_role, mode, status from gp_segment_configuration
create table segwalrep_commit_blocking (a int) distributed by (a);
insert into segwalrep_commit_blocking values (1);
-- WALREP_FIXME: we don't wait for the GUC to propagate to the ftsprobe process; it's
-- possible that one final probe could get through after we shut down the mirror
-- in the next line and throw off the test (since if the mirror is marked down,
-- the primary won't block). As a temporary nasty hack, try to reduce possible
-- flake by issuing a probe manually, which will delay the next one by a minute.
select gp_request_fts_probe_scan();
-- turn off fts
! gpconfig -c gp_fts_probe_pause -v true --masteronly --skipvalidation;
1U: select pg_ctl((select datadir from gp_segment_configuration c where c.role='p' and c.content=-1), 'reload', NULL, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册