25 Star 26 Fork 196

openGauss / Plugin

 / 详情

【恩墨】【测试类型:SQL功能】在兼容b库上,lock table功能在nodes.yml中url的参数为非simple模式下,利用jdbc(yat)运行结果不正确。而在simple模式下(url: 'jdbc:postgresql://127.0.0.1:8989/db1?preferQueryMode=simple'),利用jdbc(yat)运行结果正确

已完成
缺陷
创建于  
2023-04-06 14:23

【标题描述】:
【测试类型:SQL功能/存储功能/接口功能/工具功能/性能/并发/压力长稳/故障注入/安全/资料/编码规范】【测试版本:2.0.0】 问题描述
在兼容b库上,lock table功能在nodes.yml中url的参数为非simple模式下,利用jdbc(yat)运行结果不正确。而在simple模式下(url: 'jdbc:postgresql://127.0.0.1:8989/db1?preferQueryMode=simple'),利用jdbc(yat)运行结果正确
【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
CentOS Linux release 7.9.2009 (Core)
Linux mogdb-dev-0008 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
【测试环境】(单机/1主x备x级联备):
单机
【被测功能】:
lock table
【测试类型】:
功能
【数据库版本】(查询命令: gaussdb -V):
openGauss 5.0.0 build ce357b14
【预置条件】:
安装插件
【操作步骤】(请填写详细的操作步骤):
CREATE TABLE t_Opengauss_Compatibility_LOCK_TABLE_Case0007_1 (
id int unsigned auto_increment not null primary key,
title varchar,
bby text,
name name
);
-- 获取读锁
LOCK TABLES t_Opengauss_Compatibility_LOCK_TABLE_Case0007_1 READ;
【预期输出】:
正确
输入图片说明
【实际输出】:
输入图片说明
【原因分析】:

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

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

【测试代码】:

评论 (3)

bulloo 创建了缺陷

Hey @bulloo, 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 @bulloo,
if you want to get quick review about your issue, please contact the owner in first: @黄凯耀 ,
and then any of the maintainers: @CodeRejector , @黄凯耀
and then any of the committers: @siven_dev , @chenxiaobin , @wumingyuan , @zhaosiqi , @husan1024 , @pengjiong , @吴岳川 , @熊小军 , @xiuqiangwang , @jeremytim
if you have any question, please contact the SIG: Plugin.

opengauss-bot 添加了
 
sig/plugin
标签
bulloo 负责人设置为xiuqiangwang
bulloo 关联项目设置为openGauss 5.1.0 community
bulloo 优先级设置为次要
Will 添加协作者刘伟
Will 添加协作者pengjiong
pengjiong 任务状态待办的 修改为已完成

5.0.1版本,经验证,已修复
(openGauss 5.0.1 build f766addf) compiled at 2023-10-07 18:06:48 commit 0 last mr on x86_64-unknown-linux-gnu, compiled by g++ (GCC) 7.3.0, 64-bit
输入图片说明

登录 后才可以发表评论

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

搜索帮助