399 Star 1.4K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

【测试类型:工具功能】【测试版本:3.0.0】存在行存压缩表时,备机重建指定参数-b full,重建后行存压缩表数据丢失

已取消
缺陷
创建于  
2022-02-19 16:42

【标题描述】:
【测试类型:工具功能】【测试版本:3.0.0】存在行存压缩表时,备机重建指定参数-b full,重建后行存压缩表数据丢失

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
openEuler release 20.03 (LTS)
Linux openGauss171 4.19.90-2003.4.0.0036.oe1.aarch64 #1 SMP Mon Mar 23 19:06:43 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

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

【被测功能】:行存压缩

【测试类型】:工具功能

【数据库版本】(查询命令: gaussdb –V):gaussdb (openGauss 2.1.0 build 1e157104) compiled at 2022-02-10 20:03:10 commit 0 last mr

【预置条件】:数据库一主一备环境正常运行

【操作步骤】(请填写详细的操作步骤):
1、设置同步参数
gs_guc set -N all -I all -c "synchronous_commit=on"
gs_guc set -N all -I all -c "most_available_sync = on"
gs_om -t stop && gs_om -t start
2、主机创建行存压缩表
drop table if exists t_rowcompress_0017 cascade;
create table t_rowcompress_0017(cid int, name varchar2) with (compresstype=1);
3、主机使用JMEter工具并行进行增删改操作,备机stop,主机继续插入完成
4、备机进行重建
gs_ctl build -b full
5、检查主备数据一致性
select checksum(t_rowcompress_0017::text) from t_rowcompress_0017;
6、检查主备行存压缩表压缩率一致性

【预期输出】:
1、成功
2、成功
3、成功
4、成功
5、主备数据一致
6、主备压缩率一致

【实际输出】:
5、主备行存压缩表数据不一致,大小不符,数据丢失
输入图片说明

输入图片说明

【原因分析】:

  1. 这个问题的根因
  2. 问题推断过程
  3. 还有哪些原因可能造成类似现象
  4. 该问题是否有临时规避措施
  5. 问题解决方案
  6. 预计修复问题时间

【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

评论 (4)

张翱 创建了缺陷

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.

张翱 负责人设置为吴岳川
张翱 优先级设置为主要
zhangxubo 添加了
 
sig/storageengine
标签
zhangxubo 优先级主要 修改为次要

0316评审:降级次要,测试继续尝试复现。
相关影响: build数据异常,可以通过全量build解决,实际上不会阻塞任何业务。

2个月未复现,问题单建议关闭,测试添加相应自动化用例,持续看护

张翱 任务状态待办的 修改为已取消

登录 后才可以发表评论

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

搜索帮助