已关闭
[Bug]: 【测试类型:功能测试】备1切换为级联备,重启集群报错 #8396
czywj创建于  8月13日关闭于  23 天前
czywj
czywj成员
8月13日 创建

测试类型

接口功能,工具功能

测试版本

7.0.0LTS

问题描述

操作系统和硬件信息

2403 arm

测试环境

企业版主备

被测功能

预置条件

操作步骤

1.将备节点1切换为级联备
gs_ctl build -D $PGDATA -M cascade_standby
gs_om -t refreshconf
2.设置事务同步方式为on
gs_guc set -N all -D /home/func_serial_0068/cluster/dn1 -c "synchronous_commit=on";
3.配置所有节点备份延迟为2min
gs_guc set -N all -D /home/func_serial_0068/cluster/dn1 -c "recovery_min_apply_delay=2min";
4.重启集群
gs_om -t stop
gs_om -t start

预期输出

集群重启成功

实际输出

集群重启失败

日志信息

初始状态
image.png
备1切换级联备
image.png
重启
image.png
image.png

备1节点日志:
image.png

提单组织

测试团队

测试代码

likedislike
czywjczywj成员
8月13日 添加了label:bug
opengauss_botopengauss_bot成员
8月13日 添加了label:sig/StorageEngine,sig/AI,sig/CM,sig/CloudNative,sig/SecurityTechnology,sig/SQLEngine
opengauss_bot
opengauss_bot成员
8月13日 评论:

Welcome To openGauss Community

Hey @czywj , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: StorageEngine, AI, CM, CloudNative, SecurityTechnology, SQLEngine ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @Igali, @bihua111, @cailei19, @h_ray, @levy53071, @libiao2024, @lihaixiao, @mrzack, @wangfeihuo, @wuyuechuan, @xiong_xjun, @zhangfengzhi123, @zhangxubo, @zhangzq131, @zjh_hw .

likedislike
shenzheng4shenzheng4成员
9月3日 将 zhangxubo 设为负责人
shenzheng4shenzheng4成员
9月3日 移除了负责人 shenzheng4
shenzheng4shenzheng4成员
9月3日 关联了看板:openGauss 7.0.0-LTS
zhangxubo
zhangxubo成员
25 天前 评论:

20260909 700B022自测:

image.png

[sdr@Testci_039 ~]$ gs_guc set -N all -D /usr2/sdryc/data/dn1 -c "synchronous_commit=on";
The gs_guc run with the following arguments: [gs_guc -N all -D /usr2/sdryc/data/dn1 -c synchronous_commit=on set ].
Begin to perform the total nodes: 3.
Popen count is 3, Popen success count is 3, Popen failure count is 0.
Begin to perform gs_guc for datanodes.
Command count is 3, Command success count is 3, Command failure count is 0.

Total instances: 3. Failed instances: 0.
ALL: Success to perform gs_guc!


[sdr@Testci_039 ~]$ gs_guc set -N all -D /usr2/sdryc/data/dn1 -c "recovery_min_apply_delay=2min"
The gs_guc run with the following arguments: [gs_guc -N all -D /usr2/sdryc/data/dn1 -c recovery_min_apply_delay=2min set ].
Begin to perform the total nodes: 3.
Popen count is 3, Popen success count is 3, Popen failure count is 0.
Begin to perform gs_guc for datanodes.
Command count is 3, Command success count is 3, Command failure count is 0.

Total instances: 3. Failed instances: 0.
ALL: Success to perform gs_guc!


[sdr@Testci_039 ~]$ gs_om -t stop

Stopping cluster.
=========================================
Successfully stopped cluster.
=========================================
End stop cluster.
[sdr@Testci_039 ~]$ gs_om -t start

Starting cluster.
=========================================
[SUCCESS] Testci_038
2026-09-09 11:26:57.657 6aa0d201.1 [unknown] 281473081389120 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2026-09-09 11:26:57.658 6aa0d201.1 [unknown] 281473081389120 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  load matrix mem dynamic lib error: libubsm_sdk.so, lib not exists
2026-09-09 11:26:57.658 6aa0d201.1 [unknown] 281473081389120 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  load UADK AGG dynamic lib for DPA: libwd_dae.so, error: libwd_dae.so: cannot open shared object file: No such file or directory
2026-09-09 11:26:57.658 6aa0d201.1 [unknown] 281473081389120 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  max_imcs_cache * htap_borrow_mem_percent is larger than max_borrow_memory
[SUCCESS] Testci_039
2026-09-09 11:27:00.157 6aa0d204.1 [unknown] 281472641183808 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2026-09-09 11:27:00.158 6aa0d204.1 [unknown] 281472641183808 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  load matrix mem dynamic lib error: libubsm_sdk.so, lib not exists
2026-09-09 11:27:00.158 6aa0d204.1 [unknown] 281472641183808 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  load UADK AGG dynamic lib for DPA: libwd_dae.so, error: libwd_dae.so: cannot open shared object file: No such file or directory
2026-09-09 11:27:00.158 6aa0d204.1 [unknown] 281472641183808 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  max_imcs_cache * htap_borrow_mem_percent is larger than max_borrow_memory
[SUCCESS] Testci_040
2026-09-09 11:27:03.135 6aa0d207.1 [unknown] 281472729395264 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  could not create any HA TCP/IP sockets
2026-09-09 11:27:03.136 6aa0d207.1 [unknown] 281472729395264 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  load matrix mem dynamic lib error: libubsm_sdk.so, lib not exists
2026-09-09 11:27:03.136 6aa0d207.1 [unknown] 281472729395264 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  load UADK AGG dynamic lib for DPA: libwd_dae.so, error: libwd_dae.so: cannot open shared object file: No such file or directory
2026-09-09 11:27:03.136 6aa0d207.1 [unknown] 281472729395264 [unknown] 0 dn_6001_6002_6003 01000  0 [BACKEND] WARNING:  max_imcs_cache * htap_borrow_mem_percent is larger than max_borrow_memory
Waiting for check cluster state...
=========================================
Successfully started.
[sdr@Testci_039 ~]$ gs_om -t status --detail
[   Cluster State   ]

cluster_state   : Normal
redistributing  : No
current_az      : AZ_ALL

[  Datanode State   ]

    node      node_ip         port      instance                     state
------------------------------------------------------------------------------------------
1  Testci_038 20.20.20.206    23000      6001 /usr2/sdryc/data/dn1   P Primary Normal
2  Testci_039 20.20.20.210    23000      6002 /usr2/sdryc/data/dn1   S Cascade Normal
3  Testci_040 20.20.20.212    23000      6003 /usr2/sdryc/data/dn1   S Standby Normal
likedislike
zhangxubozhangxubo成员
25 天前 issue状态由 待办的 改变为 待回归
sungang14
sungang14成员
23 天前 评论:

【回归人员】sungang14
【回归日期】2026.9.11
【回归版本】openGauss 7.0.0B022
【回归结论】通过
【回归步骤】
1.将备节点1切换为级联备
gs_ctl build -D $PGDATA -M cascade_standby
gs_om -t refreshconf
2.设置事务同步方式为on
gs_guc set -N all -D $PGDATA -c "synchronous_commit=on";
3.配置所有节点备份延迟为2min
gs_guc set -N all -D $PGDATA -c "recovery_min_apply_delay=2min";
4.重启集群
gs_om -t stop
gs_om -t start
image.png
image.png
image.png

likedislike
sungang14sungang14成员
23 天前 issue状态由 待回归 改变为 已验收
sungang14sungang14成员
23 天前 关闭了 issue
zhangxubozhangxubo成员
4 天前 关联了pull request:【700代码回合master】容器问题回合