399 Star 1.3K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

【测试类型:工具功能】【测试版本:master】主备多次进行切换,极小概率数据库stop失败

已验收
缺陷
创建于  
2022-06-09 17:59

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
CentOS Linux release 7.6.1908 (Core)
【测试环境】(单机/1主x备x级联备):
一主两备
【被测功能】:
主备切换
【测试类型】:
功能测试
【数据库版本】(查询命令: gaussdb –V):
gaussdb (openGauss 3.0.0 build 2e38920a) compiled at 2022-06-08 20:04:33 commit 0 last mr
【预置条件】:
一主两备数据库状态正常
【操作步骤】(请填写详细的操作步骤):

  1. 主机执行ddl,dml
    drop table if exists tb_gsc0030;
    create table tb_gsc0030(id int);
    insert into tb_gsc0030 values (generate_series(1,10000));"
  2. 备机执行switchover
    gs_ctl switchover -D /data/func_4_0677/cluster/dn1 ;
    gs_om -t refreshconf
  3. 新主执行步骤1操作
  4. 再次执行switchover
    gs_ctl switchover -D /data/func_4_0677/cluster/dn1 ;
    gs_om -t refreshconf
  5. 新主执行步骤1操作
  6. stop集群
    gs_om -t stop

【预期输出】:
步骤1-6执行成功
【实际输出】:
步骤1-5执行成功,步骤6概率性执行失败(主机stop5分钟超时,ps:与主机切换的备机也出现过stop超时问题)

【原因分析】:

【日志信息】(请附上日志文件、截图、coredump信息):
输入图片说明
【测试代码】:

评论 (2)

裴琳倩 创建了缺陷

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.

裴琳倩 负责人设置为陈玉标
裴琳倩 优先级设置为主要
裴琳倩 关联分支设置为master
裴琳倩 关联项目设置为openGauss 3.1.0 community
裴琳倩 修改了描述
陈玉标 任务状态待办的 修改为已确认
陈玉标 任务状态已确认 修改为修复中
陈玉标 任务状态修复中 修改为已完成
陈玉标 任务状态已完成 修改为测试中
陈玉标 任务状态测试中 修改为修复中
陈玉标 通过opengauss/openGauss-server Pull Request !1825任务状态修复中 修改为已完成
陈玉标 任务状态已完成 修改为测试中

原问题为偶现问题,开发代码合入后,两周未复现。

裴琳倩 任务状态测试中 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
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

搜索帮助