Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
7f0a0aee
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7f0a0aee
编写于
7月 16, 2019
作者:
A
Adam Berlin
提交者:
Adam Berlin
7月 26, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update tests to disable fts and include warnings.
上级
fbd0f091
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
33 addition
and
7 deletion
+33
-7
src/test/heap_checksum/expected/heap_checksum_corruption.out
src/test/heap_checksum/expected/heap_checksum_corruption.out
+1
-0
src/test/regress/expected/bitmap_index.out
src/test/regress/expected/bitmap_index.out
+3
-3
src/test/regress/expected/bitmap_index_optimizer.out
src/test/regress/expected/bitmap_index_optimizer.out
+28
-3
src/test/regress/sql/bitmap_index.sql
src/test/regress/sql/bitmap_index.sql
+1
-1
未找到文件。
src/test/heap_checksum/expected/heap_checksum_corruption.out
浏览文件 @
7f0a0aee
...
...
@@ -292,6 +292,7 @@ WARNING: page verification failed, calculated checksum 18239 but expected 58815
ERROR: invalid page in block 0 of relation base/81967/81939 (seg0 slice1 127.0.0.1:25432 pid=27287)
-- trigger recovery on primaries with multiple retries and ignore warning/notice messages
select gp_inject_fault_infinite('finish_prepared_after_record_commit_prepared', 'panic', dbid) from gp_segment_configuration where role = 'p';
WARNING: consider disabling FTS probes while injecting a panic.
NOTICE: Success:
gp_inject_fault_infinite
--------------------------
...
...
src/test/regress/expected/bitmap_index.out
浏览文件 @
7f0a0aee
...
...
@@ -631,9 +631,9 @@ drop table unlogged_test;
-- disable fault-tolerance service (FTS) probing to ensure
-- the mirror does not accidentally get promoted
--
SELECT gp_inject_fault2('fts_probe', 'skip', dbid, hostname, port) FROM gp_segment_configuration WHERE role = 'p' and content = -1;
gp_inject_fault2
------------------
SELECT gp_inject_fault
_infinite
2('fts_probe', 'skip', dbid, hostname, port) FROM gp_segment_configuration WHERE role = 'p' and content = -1;
gp_inject_fault
_infinite
2
------------------
---------
Success:
(1 row)
...
...
src/test/regress/expected/bitmap_index_optimizer.out
浏览文件 @
7f0a0aee
...
...
@@ -629,6 +629,16 @@ drop table unlogged_test;
--
-- Test crash recovery
--
--
-- disable fault-tolerance service (FTS) probing to ensure
-- the mirror does not accidentally get promoted
--
SELECT gp_inject_fault_infinite2('fts_probe', 'skip', dbid, hostname, port) FROM gp_segment_configuration WHERE role = 'p' and content = -1;
gp_inject_fault_infinite2
---------------------------
Success:
(1 row)
CREATE TABLE bm_test_insert(a int) DISTRIBUTED BY (a);
CREATE INDEX bm_a_idx ON bm_test_insert USING bitmap(a);
CREATE TABLE bm_test_update(a int, b int) DISTRIBUTED BY (a);
...
...
@@ -652,9 +662,15 @@ INSERT INTO bm_test_insert SELECT generate_series (1, 10000);
UPDATE bm_test_update SET b=b+1;
-- trigger recovery on primaries
SELECT gp_inject_fault_infinite('finish_prepared_after_record_commit_prepared', 'panic', dbid) FROM gp_segment_configuration WHERE role = 'p' AND content > -1;
NOTICE: Success: (seg0 172.17.0.10:25435 pid=69866)
NOTICE: Success: (seg1 172.17.0.10:25433 pid=69867)
NOTICE: Success: (seg2 172.17.0.10:25434 pid=69868)
WARNING: consider disabling FTS probes while injecting a panic. (seg0 127.0.0.1:7002 pid=98667)
HINT: Inject a 'skip' into the 'fts_probe' fault to disable FTS probing.
NOTICE: Success: (seg0 127.0.0.1:7002 pid=98667)
WARNING: consider disabling FTS probes while injecting a panic. (seg1 127.0.0.1:7003 pid=98668)
HINT: Inject a 'skip' into the 'fts_probe' fault to disable FTS probing.
NOTICE: Success: (seg1 127.0.0.1:7003 pid=98668)
WARNING: consider disabling FTS probes while injecting a panic. (seg2 127.0.0.1:7004 pid=98669)
HINT: Inject a 'skip' into the 'fts_probe' fault to disable FTS probing.
NOTICE: Success: (seg2 127.0.0.1:7004 pid=98669)
gp_inject_fault_infinite
--------------------------
t
...
...
@@ -705,6 +721,15 @@ SELECT * FROM bm_test_update WHERE b=1;
DROP TABLE trigger_recovery_on_primaries;
DROP TABLE bm_test_insert;
DROP TABLE bm_test_update;
--
-- re-enable fault-tolerance service (FTS) probing after recovery completed.
--
SELECT gp_inject_fault2('fts_probe', 'reset', dbid, hostname, port) FROM gp_segment_configuration WHERE role = 'p' and content = -1;
gp_inject_fault2
------------------
Success:
(1 row)
-- If the table is AO table, it need generate some fake tuple pointer,
-- this pointer is a little different from the heap tables pointer,
-- If the Offset in pointer is 0(If the row number is 32768, the Offset
...
...
src/test/regress/sql/bitmap_index.sql
浏览文件 @
7f0a0aee
...
...
@@ -271,7 +271,7 @@ drop table unlogged_test;
-- disable fault-tolerance service (FTS) probing to ensure
-- the mirror does not accidentally get promoted
--
SELECT
gp_inject_fault2
(
'fts_probe'
,
'skip'
,
dbid
,
hostname
,
port
)
FROM
gp_segment_configuration
WHERE
role
=
'p'
and
content
=
-
1
;
SELECT
gp_inject_fault
_infinite
2
(
'fts_probe'
,
'skip'
,
dbid
,
hostname
,
port
)
FROM
gp_segment_configuration
WHERE
role
=
'p'
and
content
=
-
1
;
CREATE
TABLE
bm_test_insert
(
a
int
)
DISTRIBUTED
BY
(
a
);
CREATE
INDEX
bm_a_idx
ON
bm_test_insert
USING
bitmap
(
a
);
CREATE
TABLE
bm_test_update
(
a
int
,
b
int
)
DISTRIBUTED
BY
(
a
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录