402 Star 1.4K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

【测试类型:SQL功能】【测试版本:5.0.1】【自动化】 备机偶现启动失败,om查询其状态一直为starting

已验收
缺陷
创建于  
2023-10-12 19:56

【标题描述】: 备机偶现启动失败
【测试类型:SQL功能】【测试版本:5.0.1】【自动化】 备机偶现启动失败,om查询其状态一直为starting

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
openEuler release 22.03 LTS
Linux kwepwebenv18733 5.10.0-60.18.0.50.oe2203.x86_64 #1 SMP Wed Mar 30 03:12:24 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

【测试环境】(单机/1主x备x级联备):
一主两备

【被测功能】:
并行回放模式下,创建并使用hash索引

【测试类型】:
功能测试

【数据库版本】(查询命令: gaussdb -V):
gaussdb (openGauss 5.0.1 build f766addf) compiled at 2023-10-07 18:34:12 commit 0 last mr

【预置条件】:
一主两备功能正常

【操作步骤】(请填写详细的操作步骤):

  1. 设置guc参数
    gs_guc set -N all -D /data/func_c_0619/cluster/dn1 -c "synchronous_standby_names='*'";
    gs_guc set -N all -D /data/func_c_0619/cluster/dn1 -c "synchronous_commit='remote_apply'";
    gs_guc set -N all -D /data/func_c_0619/cluster/dn1 -c "hot_standby=on";
    gs_guc set -N all -D /data/func_c_0619/cluster/dn1 -c "wal_level='hot_standby'";
    gs_guc set -N all -D /data/func_c_0619/cluster/dn1 -c "recovery_max_workers=4";
    gs_om -t restart
  2. 建表并创建hash索引
    create table t_hash_index_0003 (id int, num int, sex varchar(20) default 'male');
    insert into t_hash_index_0003 select random()*10, random()*3, 'XXX' from generate_series(1,5000);
    drop index if exists i_hash_index_0003;
    create index i_hash_index_0003 on t_hash_index_0003 using hash (id);
  3. 主备进行查询
    explain select count(*) from t_hash_index_0003 where id=100;
  4. 删除表
    drop table if exists t_hash_index_0003;
  5. 还原参数
  6. 重启数据库
    gs_om -t restart

【预期输出】:

  1. 设置guc参数,成功
  2. 建表并创建hash索引,成功
  3. 主备进行查询,成功
  4. 删除表,成功
  5. 还原参数,成功
  6. 重启数据库,成功

【实际输出】:

  1. 设置guc参数,成功
  2. 建表并创建hash索引,成功
  3. 主备进行查询,成功
  4. 删除表,成功
  5. 还原参数,成功
  6. 重启数据库,失败

【原因分析】:

  1. 备机并行回放问题

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

【测试代码】:

附件
裴琳倩 2023-10-12 20:07
裴琳倩 2023-10-12 20:07
裴琳倩 2023-10-12 20:07
裴琳倩 2023-10-12 20:07
裴琳倩 2023-10-12 20:07

评论 (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.

Hi @裴琳倩, please use the command /sig xxx to add a SIG label to this issue.
For example: /sig sqlengine or /sig storageengine or /sig om or /sig ai and so on.
You can find more SIG labels from Here.
If you have no idea about that, please contact with @xiangxinyong , @zhangxubo .

chenxiaobin 任务状态待办的 修改为已确认
chenxiaobin 任务状态已确认 修改为修复中
chenxiaobin 通过opengauss/openGauss-server Pull Request !4315任务状态修复中 修改为已完成
裴琳倩 修改了描述
裴琳倩 任务状态已完成 修改为待回归
裴琳倩 任务状态待回归 修改为测试中
裴琳倩 任务状态测试中 修改为已验收

验收日期:2023-10-20
验收版本:gsql (openGauss 5.0.1 build 91c814e3) compiled at 2023-10-19 10:07:03 commit 0 last mr
验收结论:通过
输入图片说明
输入图片说明
输入图片说明

登录 后才可以发表评论

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

搜索帮助