399 Star 1.3K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

【业务范畴:开源】【测试类型:工具功能】【测试活动:社区】【测试版本:2.0.0】【特性名称:gs_initdb】【环境:裸机】gs_initdb -T参数未增加校验,且按照指导手册设置后取值不正确

已验收
缺陷
创建于  
2021-09-01 10:39

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

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

【被测功能】:
gs_initdb
【测试类型】:
功能测试
【数据库版本】(查询命令: gaussdb –V):
gaussdb (openGauss 2.0.0 build 4b8e3965) compiled at 2021-08-03 20:03:11 commit 0 last mr
【预置条件】:
解压安装包
tar -jxvf openGauss-2.0.0-openEuler-64bit.tar.bz2 -C pkg1/
【操作步骤】(请填写详细的操作步骤):

  1. 初始化数据库
    gs_initdb -D xxx -w 'xxx' --nodename=pkg1 -T pg_catalog.simpl
  2. 启动数据库
    gs_ctl -D xxx start
    3.查询参数
    show default_text_search_config;

【预期输出】:

default_text_search_config

pg_catalog.simple
(1 row)
【实际输出】:
default_text_search_config

pg_catalog.pg_catalog.simple
(1 row)

【原因分析】:

  1. 这个问题的根因
    未对该参数进行校验,并且参数取值为“simple”或“english”,并非“pg_catalog.simple”

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

【测试代码】:

评论 (2)

Hey @liumin, 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 https://gitee.com/opengauss/community/blob/master/contributors/command.en.md to find the details.

liumin 创建了缺陷
liumin 关联仓库设置为openGauss/openGauss-server
liumin 负责人设置为zhangxubo
liumin 优先级设置为次要
liumin 优先级次要 修改为不重要
展开全部操作日志

输入图片说明

虽然不做正确性校验,但是如果设置为pg_catalog.simple会导致显示为pg_catalog.pg_catalog.simple

zhangxubo 通过opengauss/docs Pull Request !1745任务状态待办的 修改为已完成
liumin 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
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

搜索帮助