399 Star 1.3K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

【测试类型:存储功能】【测试版本:master】 hot_standby 为off 、wal_level为archive场景 ,执行switchover、failover后,新主执行DDL,Drop提示“ERROR: tuple concurrently updated”;备机全局系统缓存未刷新;

已验收
缺陷
创建于  
2022-04-01 15:24

【测试环境】(单机/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信息):
输入图片说明
【测试代码】:

评论 (3)

裴琳倩 创建了缺陷

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.

裴琳倩 修改了描述
裴琳倩 负责人设置为wanglei
zhangxubo 添加了
 
sig/storageengine
标签
裴琳倩 关联项目设置为openGauss 3.1.0 community
裴琳倩 优先级设置为主要
裴琳倩 关联分支设置为master
周斌 任务状态待办的 修改为已确认
周斌 负责人wanglei 修改为周斌
周斌 添加协作者吕广利
周斌 任务状态已确认 修改为修复中
周斌 通过opengauss/openGauss-server Pull Request !1762任务状态修复中 修改为已完成

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
回归通过
输入图片说明

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5622128 opengauss bot 1581905080
C++
1
https://gitee.com/opengauss/openGauss-server.git
git@gitee.com:opengauss/openGauss-server.git
opengauss
openGauss-server
openGauss-server

搜索帮助