【标题描述】:产生各种日志,进行按需回放数据库coredump
【测试类型:SQL功能/存储功能/接口功能/工具功能/性能/并发/压力长稳/故障注入/安全/资料/编码规范】【测试版本:2.0.0】 问题描述
【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
openEuler release 20.03 (LTS)
Linux sharedstore002 4.19.90-2003.4.0.0036.oe1.x86_64 #1 SMP Mon Mar 23 19:10:41 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
【测试环境】(单机/1主x备x级联备):
一主两备资源池化环境
【被测功能】:
failover按需回放
【测试类型】:
功能测试
【数据库版本】(查询命令: gaussdb -V):
gaussdb (openGauss 5.1.0 build a74b7333) compiled at 2023-06-19 09:40:28 commit 0 last mr
【预置条件】:
gs_guc set -N all -I all -c "replication_type=1"
gs_guc set -N all -I all -c "recovery_parse_workers=4"
gs_guc set -N all -I all -c "recovery_redo_workers=4"
gs_guc set -N all -I all -c "hot_standby=off"
gs_guc set -N all -I all -c "ss_enable_ondemand_recovery=on"
gs_guc set -N all -I all -c "ss_ondemand_recovery_mem_size=25GB"
gs_guc set -N all -I all -c "shared_buffers=100GB"
gs_guc set -N all -I all -c "pagewriter_thread_num = 1"
gs_guc set -N all -I all -c "pagewriter_sleep = 60min"
gs_guc set -N all -I all -c "enable_incremental_checkpoint = off"
【操作步骤】(请填写详细的操作步骤):
create table tb_01(id integer,name varchar(16))with(segment=on);
insert into tb_01 values (1, 'aaa');insert into tb_01 values (2, 'bbb');insert into tb_01 values (3, 'ccc');
alter table tb_01 add primary key (id);alter table tb_01 modify name varchar(32);
drop table tb_01;
create table tb_02(id integer,name varchar(16))with(segment=on);
insert into tb_02 values (1, 'aaa');insert into tb_02 values (2, 'bbb');insert into tb_02 values (3, 'ccc');
alter table tb_02 modify name varchar(32);
CREATE or replace VIEW "v_tb_02" AS SELECT * FROM tb_02;
create user tpcc1 password "Huawei@123";grant all privileges to tpcc1;revoke all privileges from tpcc1;
begin;create table tb_03(id integer,name varchar(16))with(segment=on);
insert into tb_03 values (1, 'aaa');insert into tb_03 values (2, 'bbb');rollback;
begin;create table tb_04(id integer,name varchar(16))with(segment=on);
insert into tb_04 values (1, 'aaa');insert into tb_04 values (2, 'bbb');commit;
【预期输出】:
failover恢复成功
【实际输出】:
failover恢复失败,升主备机coredump
【原因分析】:
【日志信息】(请附上日志文件、截图、coredump信息):
cm查询状态:
core堆栈:
#0 BBOX_CreateCoredump (file_name=file_name@entry=0x0) at bbox_create.cpp:404
#1 0x0000555e9baacdd2 in bbox_handler (sig=<optimized out>, si=0x7f9550048c30, uc=0x7f9550048b00) at gs_bbox.cpp:112
#2 bbox_handler (sig=<optimized out>, si=0x7f9550048c30, uc=0x7f9550048b00) at gs_bbox.cpp:102
#3 <signal handler called>
#4 0x0000000000000000 in ?? ()
#5 0x0000555e9c29dfee in XLogDropRelation (rnode=..., forknum=forknum@entry=0) at xlogutils.cpp:1444
#6 0x0000555e9c29e3f5 in XlogDropRowReation (rnode=...) at xlogutils.cpp:1377
#7 XLogForgetDDLRedo (redoblockstate=redoblockstate@entry=0x7f996e4cf1f0) at xlogutils.cpp:1402
#8 0x0000555e9c20bfe7 in ondemand_extreme_rto::RedoPageWorkerMain () at page_redo.cpp:1641
#9 0x0000555e9c20f915 in ondemand_extreme_rto::RedoMainLoop () at page_redo.cpp:2552
#10 0x0000555e9c20fc12 in ondemand_extreme_rto::ParallelRedoThreadMain () at page_redo.cpp:2666
#11 0x0000555e9bdc9a66 in GaussDbAuxiliaryThreadMain<(knl_thread_role)22> (arg=0x7fa20b7f6af0) at postmaster.cpp:11510
#12 GaussDbThreadMain<(knl_thread_role)22> (arg=0x7fa20b7f6af0) at postmaster.cpp:13674
#13 0x0000555e9bd9e3b5 in InternalThreadFunc (args=<optimized out>) at postmaster.cpp:14256
#14 0x00007fbd502b5fed in ?? () from /lib64/libpthread.so.0
#15 0x00007fbd501e918f in clone () from /lib64/libc.so.6
数据库日志:
【测试代码】:
Hey @zhaobingyu, 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 @zhaobingyu, 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 .
验收版本:
gaussdb (openGauss 5.1.0 build 31025cde) compiled at 2023-08-02 00:09:00 commit 0 last mr
验收结果:
在产生各种日志后,按需回放成功,并且集群成功恢复初始状态
5.0.1验证 通过 gaussdb (openGauss 5.0.1 build 1afdf2b0) compiled at 2023-10-12 17:49:15 commit 0 last mr
登录 后才可以发表评论