登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
就在本周六,成都站 Gitee Talk | 模力方舟 AI 应用开发沙龙抢占最后席位!聚焦 AI 开发全链路,结识技术同频人~
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
31
Star
32
Fork
226
openGauss
/
Plugin
代码
Issues
50
Pull Requests
1
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
【测试类型:SQL功能】【测试版本:6.0.0】【自动化】 备机连接兼容B库,备机core
已验收
#IA6VB9
缺陷
裴琳倩
创建于
2024-06-20 11:15
<!-- #请认真填写以下信息,否则可能由于无法定位,导致issue无法解决而被取消 --> 【标题描述】: 备机连接兼容B库,备机core 【测试类型:SQL功能】【测试版本:6.0.0】【自动化】 备机连接兼容B库,备机core 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): CentOS Linux release 7.6.1810 (Core) 【测试环境】(单机/1主x备x级联备): 一主两备 【被测功能】: 备机连接兼容B库 【测试类型】: 功能测试 【数据库版本】(查询命令: gaussdb -V): gaussdb (openGauss 6.0.0 build b061d510) compiled at 2024-06-12 10:07:05 commit 0 last mr 【预置条件】: 一主两备数据库正常 【操作步骤】(请填写详细的操作步骤): 1. 主机创建兼容B库 create database test_b dbcompatibility 'B'; 2. 备机进行连接 \c test_b 【预期输出】: 1. 主机创建兼容B库,成功 2. 备机进行连接成功 【实际输出】: 1. 主机创建兼容B库,成功 2. 备机进行连接异常core  【原因分析】: 1. 备机写转发功能优化引起 【日志信息】(请附上日志文件、截图、coredump信息): ``` (gdb) bt #0 0x0000aaae5b9fb35c in sys_wait4 (ru=0x0, options=options@entry=1073741824, stat_addr=stat_addr@entry=0xfffb363c159c, upid=upid@entry=3405183) at bbox_syscall_support.cpp:36 #1 sys_waitpid (pid=pid@entry=3405183, status=status@entry=0xfffb363c159c, options=options@entry=1073741824) at bbox_syscall_support.cpp:516 #2 0x0000aaae5b9fc758 in BBOX_GetClonePidResult (iClonePid=iClonePid@entry=3405183, pstArgs=pstArgs@entry=0xfffb363c1620, iCloneErrno=iCloneErrno@entry=9) at bbox_threads.cpp:572 #3 0x0000aaae5b9fca98 in BBOX_GetAllThreads (enType=<optimized out>, pDone=pDone@entry=0xaaae5b9f3640 <BBOX_FinishDumpFile(void*)>, pDoneArgs=pDoneArgs@entry=0xfffb363c1768, pCallback=<optimized out>) at bbox_threads.cpp:700 #4 0x0000aaae5b9f38fc in BBOX_CreateCoredump (file_name=0xfffb363c1898 "/core/corefile//core-gaussdb-3388767-2024_06_19_11_29_33-bbox.lz4", file_name@entry=0x0) at bbox_create.cpp:440 #5 0x0000aaae5b9fe0c8 in bbox_handler (sig=<optimized out>, si=<optimized out>, uc=<optimized out>) at gs_bbox.cpp:116 #6 bbox_handler (sig=<optimized out>, si=<optimized out>, uc=<optimized out>) at gs_bbox.cpp:103 #7 <signal handler called> #8 RedirectManager::get_remote_excute (this=0x0) at ../../../../src/include/replication/libpqsw.h:286 #9 libpqsw_skip_check_readonly () at libpqsw.cpp:574 #10 0x0000fffb31f955ec in check_xact_readonly (parse_tree=0xfffb32ed8d30) at plugin_utility.cpp:446 #11 standard_ProcessUtility (processutility_cxt=processutility_cxt@entry=0xfffb363c5fb8, dest=dest@entry=0xfffb32ed8e00, sent_to_remote=sent_to_remote@entry=false, completion_tag=completion_tag@entry=0xfffb363c5fb8 "", context=context@entry=PROCESS_UTILITY_TOPLEVEL, isCTAS=isCTAS@entry=false) at plugin_utility.cpp:2660 #12 0x0000aaae5bd7f284 in standard_ProcessUtility (processutility_cxt=processutility_cxt@entry=0xfffb363c5fb8, dest=0xfffb32ed8e00, dest@entry=0x1, sent_to_remote=false, sent_to_remote@entry=251, completion_tag=0xfffb363c5fb8 "", completion_tag@entry=0x0, context=context@entry=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at utility.cpp:2567 #13 0x0000fffcda0a85a8 in gsaudit_ProcessUtility_hook (processutility_cxt=0xfffb363c5fb8, dest=0x1, sentToRemote=251, completionTag=0x0, context=PROCESS_UTILITY_TOPLEVEL, isCTAS=<optimized out>) at gs_policy_plugin.cpp:819 #14 0x0000aaae5bd873ec in pgaudit_ProcessUtility (processutility_cxt=0xfffb363c5ac8, dest=<optimized out>, sentToRemote=<optimized out>, completionTag=<optimized out>, context=<optimized out>, isCTAS=<optimized out>) at auditfuncs.cpp:1419 #15 0x0000aaae5bd82950 in ProcessUtility (processutility_cxt=processutility_cxt@entry=0xfffb363c5ac8, dest=dest@entry=0xfffb32ed8e00, sent_to_remote=sent_to_remote@entry=false, completion_tag=completion_tag@entry=0xfffb363c5fb8 "", context=context@entry=PROCESS_UTILITY_TOPLEVEL, isCTAS=isCTAS@entry=false) at utility.cpp:1565 #16 0x0000aaae5bd74c98 in PortalRunUtility (portal=portal@entry=0xfffb33220050, utilityStmt=utilityStmt@entry=0xfffb32ed8d30, isTopLevel=isTopLevel@entry=true, dest=dest@entry=0xfffb32ed8e00, completionTag=completionTag@entry=0xfffb363c5fb8 "") at pquery.cpp:1740 #17 0x0000aaae5bd77ae4 in PortalRunMulti (portal=portal@entry=0xfffb33220050, isTopLevel=isTopLevel@entry=true, dest=dest@entry=0xfffb32ed8e00, altdest=altdest@entry=0xfffb32ed8e00, completionTag=completionTag@entry=0xfffb363c5fb8 "") at pquery.cpp:1919 #18 0x0000aaae5bd78fd8 in PortalRun (portal=portal@entry=0xfffb33220050, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=true, dest=dest@entry=0xfffb32ed8e00, altdest=altdest@entry=0xfffb32ed8e00, completionTag=completionTag@entry=0xfffb363c5fb8 "") at pquery.cpp:1188 #19 0x0000aaae5bd67bb4 in exec_simple_query ( query_string=query_string@entry=0xfffb32ed8050 "SET connection_info = '{\"driver_name\":\"libpq\",\"driver_version\":\"(openGauss 6.0.0 build b061d510) compiled at 2024-06-12 11:36:06 commit 0 last mr \"}'", messageType=messageType@entry=QUERY_MESSAGE, msg=msg@entry=0xfffb363c7ec8) at postgres.cpp:3095 #20 0x0000aaae5bd6c714 in PostgresMain (argc=<optimized out>, argv=argv@entry=0xfffb344a1f68, dbname=<optimized out>, username=<optimized out>) at postgres.cpp:9229 #21 0x0000aaae5bcc4cdc in BackendRun (port=port@entry=0xfffb363c7c18) at postmaster.cpp:9650 #22 0x0000aaae5bcf25a0 in GaussDbThreadMain<(knl_thread_role)1> (arg=<optimized out>) at postmaster.cpp:12024 #23 0x0000aaae5bcc4d70 in InternalThreadFunc (args=<optimized out>) at postmaster.cpp:14881 #24 0x0000fffcda3788cc in ?? () from /lib64/libpthread.so.0 #25 0x0000fffcda2b954c in ?? () from /lib64/libc.so.6 (gdb) quit ``` 【测试代码】:
<!-- #请认真填写以下信息,否则可能由于无法定位,导致issue无法解决而被取消 --> 【标题描述】: 备机连接兼容B库,备机core 【测试类型:SQL功能】【测试版本:6.0.0】【自动化】 备机连接兼容B库,备机core 【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a): CentOS Linux release 7.6.1810 (Core) 【测试环境】(单机/1主x备x级联备): 一主两备 【被测功能】: 备机连接兼容B库 【测试类型】: 功能测试 【数据库版本】(查询命令: gaussdb -V): gaussdb (openGauss 6.0.0 build b061d510) compiled at 2024-06-12 10:07:05 commit 0 last mr 【预置条件】: 一主两备数据库正常 【操作步骤】(请填写详细的操作步骤): 1. 主机创建兼容B库 create database test_b dbcompatibility 'B'; 2. 备机进行连接 \c test_b 【预期输出】: 1. 主机创建兼容B库,成功 2. 备机进行连接成功 【实际输出】: 1. 主机创建兼容B库,成功 2. 备机进行连接异常core  【原因分析】: 1. 备机写转发功能优化引起 【日志信息】(请附上日志文件、截图、coredump信息): ``` (gdb) bt #0 0x0000aaae5b9fb35c in sys_wait4 (ru=0x0, options=options@entry=1073741824, stat_addr=stat_addr@entry=0xfffb363c159c, upid=upid@entry=3405183) at bbox_syscall_support.cpp:36 #1 sys_waitpid (pid=pid@entry=3405183, status=status@entry=0xfffb363c159c, options=options@entry=1073741824) at bbox_syscall_support.cpp:516 #2 0x0000aaae5b9fc758 in BBOX_GetClonePidResult (iClonePid=iClonePid@entry=3405183, pstArgs=pstArgs@entry=0xfffb363c1620, iCloneErrno=iCloneErrno@entry=9) at bbox_threads.cpp:572 #3 0x0000aaae5b9fca98 in BBOX_GetAllThreads (enType=<optimized out>, pDone=pDone@entry=0xaaae5b9f3640 <BBOX_FinishDumpFile(void*)>, pDoneArgs=pDoneArgs@entry=0xfffb363c1768, pCallback=<optimized out>) at bbox_threads.cpp:700 #4 0x0000aaae5b9f38fc in BBOX_CreateCoredump (file_name=0xfffb363c1898 "/core/corefile//core-gaussdb-3388767-2024_06_19_11_29_33-bbox.lz4", file_name@entry=0x0) at bbox_create.cpp:440 #5 0x0000aaae5b9fe0c8 in bbox_handler (sig=<optimized out>, si=<optimized out>, uc=<optimized out>) at gs_bbox.cpp:116 #6 bbox_handler (sig=<optimized out>, si=<optimized out>, uc=<optimized out>) at gs_bbox.cpp:103 #7 <signal handler called> #8 RedirectManager::get_remote_excute (this=0x0) at ../../../../src/include/replication/libpqsw.h:286 #9 libpqsw_skip_check_readonly () at libpqsw.cpp:574 #10 0x0000fffb31f955ec in check_xact_readonly (parse_tree=0xfffb32ed8d30) at plugin_utility.cpp:446 #11 standard_ProcessUtility (processutility_cxt=processutility_cxt@entry=0xfffb363c5fb8, dest=dest@entry=0xfffb32ed8e00, sent_to_remote=sent_to_remote@entry=false, completion_tag=completion_tag@entry=0xfffb363c5fb8 "", context=context@entry=PROCESS_UTILITY_TOPLEVEL, isCTAS=isCTAS@entry=false) at plugin_utility.cpp:2660 #12 0x0000aaae5bd7f284 in standard_ProcessUtility (processutility_cxt=processutility_cxt@entry=0xfffb363c5fb8, dest=0xfffb32ed8e00, dest@entry=0x1, sent_to_remote=false, sent_to_remote@entry=251, completion_tag=0xfffb363c5fb8 "", completion_tag@entry=0x0, context=context@entry=PROCESS_UTILITY_TOPLEVEL, isCTAS=false) at utility.cpp:2567 #13 0x0000fffcda0a85a8 in gsaudit_ProcessUtility_hook (processutility_cxt=0xfffb363c5fb8, dest=0x1, sentToRemote=251, completionTag=0x0, context=PROCESS_UTILITY_TOPLEVEL, isCTAS=<optimized out>) at gs_policy_plugin.cpp:819 #14 0x0000aaae5bd873ec in pgaudit_ProcessUtility (processutility_cxt=0xfffb363c5ac8, dest=<optimized out>, sentToRemote=<optimized out>, completionTag=<optimized out>, context=<optimized out>, isCTAS=<optimized out>) at auditfuncs.cpp:1419 #15 0x0000aaae5bd82950 in ProcessUtility (processutility_cxt=processutility_cxt@entry=0xfffb363c5ac8, dest=dest@entry=0xfffb32ed8e00, sent_to_remote=sent_to_remote@entry=false, completion_tag=completion_tag@entry=0xfffb363c5fb8 "", context=context@entry=PROCESS_UTILITY_TOPLEVEL, isCTAS=isCTAS@entry=false) at utility.cpp:1565 #16 0x0000aaae5bd74c98 in PortalRunUtility (portal=portal@entry=0xfffb33220050, utilityStmt=utilityStmt@entry=0xfffb32ed8d30, isTopLevel=isTopLevel@entry=true, dest=dest@entry=0xfffb32ed8e00, completionTag=completionTag@entry=0xfffb363c5fb8 "") at pquery.cpp:1740 #17 0x0000aaae5bd77ae4 in PortalRunMulti (portal=portal@entry=0xfffb33220050, isTopLevel=isTopLevel@entry=true, dest=dest@entry=0xfffb32ed8e00, altdest=altdest@entry=0xfffb32ed8e00, completionTag=completionTag@entry=0xfffb363c5fb8 "") at pquery.cpp:1919 #18 0x0000aaae5bd78fd8 in PortalRun (portal=portal@entry=0xfffb33220050, count=count@entry=9223372036854775807, isTopLevel=isTopLevel@entry=true, dest=dest@entry=0xfffb32ed8e00, altdest=altdest@entry=0xfffb32ed8e00, completionTag=completionTag@entry=0xfffb363c5fb8 "") at pquery.cpp:1188 #19 0x0000aaae5bd67bb4 in exec_simple_query ( query_string=query_string@entry=0xfffb32ed8050 "SET connection_info = '{\"driver_name\":\"libpq\",\"driver_version\":\"(openGauss 6.0.0 build b061d510) compiled at 2024-06-12 11:36:06 commit 0 last mr \"}'", messageType=messageType@entry=QUERY_MESSAGE, msg=msg@entry=0xfffb363c7ec8) at postgres.cpp:3095 #20 0x0000aaae5bd6c714 in PostgresMain (argc=<optimized out>, argv=argv@entry=0xfffb344a1f68, dbname=<optimized out>, username=<optimized out>) at postgres.cpp:9229 #21 0x0000aaae5bcc4cdc in BackendRun (port=port@entry=0xfffb363c7c18) at postmaster.cpp:9650 #22 0x0000aaae5bcf25a0 in GaussDbThreadMain<(knl_thread_role)1> (arg=<optimized out>) at postmaster.cpp:12024 #23 0x0000aaae5bcc4d70 in InternalThreadFunc (args=<optimized out>) at postmaster.cpp:14881 #24 0x0000fffcda3788cc in ?? () from /lib64/libpthread.so.0 #25 0x0000fffcda2b954c in ?? () from /lib64/libc.so.6 (gdb) quit ``` 【测试代码】:
评论 (
5
)
登录
后才可以发表评论
状态
已验收
待办的
已确认
已答复
已取消
挂起
修复中
已完成
待回归
测试中
已验收
负责人
未设置
cchen676
struggle_hw
负责人
协作者
+负责人
+协作者
陈栋
chendong76
负责人
协作者
+负责人
+协作者
标签
qa_compatibility
sig/plugin
未设置
项目
未立项任务
未立项任务
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (7)
标签 (11)
master
6.0.0
5.0.0
7.0.0-RC1
3.0.0
5.1.0
3.1.0
v6.0.2
v6.0.1
v6.0.0
v5.0.3
v5.0.2
v6.0.0-RC1
v5.0.1
v5.1.0
v5.0.0
v3.1.0
v2.1.0
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(2)
1
https://gitee.com/opengauss/Plugin.git
git@gitee.com:opengauss/Plugin.git
opengauss
Plugin
Plugin
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册