【测试环境】(单机/1主x备x级联备):
一主两备
【被测功能】:
GSC功能
【测试类型】:
功能测试
【数据库版本】(查询命令: gaussdb –V):
gaussdb (openGauss 3.0.0 build ea938c94) compiled at 2022-03-31 23:03:17 commit 0 last mr
【预置条件】:
gs_guc set -N all -I all -c "enable_global_syscache=on"
【操作步骤】(请填写详细的操作步骤):
1、 设置极致RTO参数并重启
gs_guc set -N all -I all -c "replication_type=1"
gs_guc set -N all -I all -c "recovery_parse_workers=4"
gs_guc set -N all -I all -c "recovery_redo_workers=4"
gs_guc set -N all -I all -c "hot_standby=off"
gs_guc set -N all -I all -c "wal_level=archive"
2、重启数据库
gs_om -t restart
3、主机执行
gsql -d tpccdb -p 34000 -r -c "drop table if exists t_RTO_Dbsys_Case036;
create table t_RTO_Dbsys_Case036(id int);
begin
for i in 1..10000 loop
insert into t_RTO_Dbsys_Case036 values(i);
end loop;
end;"
4、备1执行switchover
gs_ctl -D {dn1} switchover
5、新主(原备1)执行
gsql -d tpccdb -p 34000 -r -c "drop table if exists t_RTO_Dbsys_Case036;
create table t_RTO_Dbsys_Case036(id int);
begin
for i in 1..10000 loop
insert into t_RTO_Dbsys_Case036 values(i);
end loop;
end;"
6、原主进行failover
新主(原备1)gs_ctl -D {dn} stop
原主进行 gs_ctl -D {dn1} failover
7、新主执行
gsql -d tpccdb -p 34000 -r -c "drop table if exists t_RTO_Dbsys_Case036;
create table t_RTO_Dbsys_Case036(id int);
begin
for i in 1..10000 loop
insert into t_RTO_Dbsys_Case036 values(i);
end loop;
end;"
【预期输出】:步骤1-7执行成功
【实际输出】:步骤7报错
【原因分析】:
【日志信息】(请附上日志文件、截图、coredump信息):
【测试代码】:
Hey @裴琳倩, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
gaussdb (openGauss 3.0.0 build df804a8a) compiled at 2022-05-26 20:04:37 commit 0 last mr
验收通过
gaussdb (openGauss 3.0.1 build cbeba177) compiled at 2022-06-27 10:00:47 commit 0 last mr
回归通过
登录 后才可以发表评论