398 Star 1.4K Fork 1.6K

GVPopenGauss / openGauss-server

 / 详情

段页式表上使用 hash 索引导致进程 core

已验收
缺陷
创建于  
2023-08-03 16:25

【标题描述】:
【测试类型:SQL功能/存储功能/接口功能/工具功能/性能/并发/压力长稳/故障注入/安全/资料/编码规范】
【测试版本】: 3.0.0 5.0.0
【问题描述】openGauss debug 版本上,在段页式表上创建并使用 hash 索引导致进程 core

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):

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

【被测功能】:

【测试类型】:

【数据库版本】(查询命令: gaussdb -V):

【预置条件】:

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

  1. 创建一张段页式表

  2. 在表上创建一个 hash 索引

  3. 插入数据

create table test (id int) with (segment = on);

create index on test using hash(id);

insert into test select generate_series(1, 100000);

【预期输出】: 预期数据插入成功,且索引功能正常

【实际输出】: 进程 core

【原因分析】:
debug 版本触发 Assert
输入图片说明

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

【测试代码】:
create table test (id int) with (segment = on);

create index on test using hash(id);

insert into test select generate_series(1, 100000);

评论 (5)

sungwu 创建了缺陷

Hey @sungwu, 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 @sungwu, 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 .

jiexiao1413 负责人设置为陈栋
jiexiao1413 优先级设置为不重要

release 版本一样有问题,该问题将导致 hash 索引无法正常使用。如果不能支持建议禁用

douxin 负责人陈栋 修改为张悦萌
Will 添加协作者陈栋
陈栋 计划开始日期设置为2023-09-07
陈栋 计划截止日期设置为2023-09-08
陈栋 任务状态待办的 修改为修复中
张悦萌 通过opengauss/openGauss-server Pull Request !3998任务状态修复中 修改为已完成
张悦萌 任务状态已完成 修改为待回归

5.0.1验收通过
输入图片说明

jiexiao1413 任务状态待回归 修改为测试中
jiexiao1413 任务状态测试中 修改为已验收

验收日期:2023/10/25
验收版本:gsql ((openGauss 5.1.1 build b0f510d7) compiled at 2023-10-19 16:56:04 commit 0 last mr )
验收结论:通过
输入图片说明

登录 后才可以发表评论

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

搜索帮助