Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
Open Source
>
Database Related
>
Database Service
&&
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
443
Star
1.5K
Fork
1.8K
openGauss
/
openGauss-server
Code
Issues
982
Pull Requests
153
Wiki
Insights
Pipelines
Service
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
【业务范畴:开源】【测试类型:工具功能】【测试活动:社区】【测试版本:2.0.0】【特性名称:PITR】【环境:裸机】PITR指定时间戳恢复失败
Accepted
#I442TY
Bug
liumin
Opened this issue
2021-08-05 17:02
【硬件类型版本】(cat /etc/system-release):openEuler release 20.03 (LTS) 【数据库版本号】(gaussdb –V): gaussdb (openGauss 2.0.1 build 18b92d01) compiled at 2021-08-04 20:41:29 commit 0 last mr 【测试环境】:arm+openEuler 【被测功能】:PITR 【测试类型】:功能测试 【对应用例号】:无 【预置条件】:单机 【测试步骤】: 1.开启归档开关 gs_guc reload -N all -D dn1 -c "archive_mode=on" gs_guc reload -N all -D dn1 -c "archive_command='cp %p archive/%f'" 2.创建表1并插入数据,并查询当前时间 CREATE TABLE tab1(a1 int); INSERT INTO tab1 VALUES (1),(2),(3); select now(); 3.进行数据库全量备份 select pg_start_backup('bak_time001'); select pg_stop_backup(); select pg_switch_xlog(); 4.创建表2并插入数据 CREATE TABLE tab2(a1 int); INSERT INTO tab2 VALUES (1),(2),(3); 5.打包dn1目录 tar -cvzf data.tar dn1 6.模拟数据库故障 停止集群 gs_om -t stop 删除dn1目录 rm -rf dn1 7.使用备份文件恢复 解压备份文件 tar -zxvf data.tar 8.新增配置文件recovery.conf ,指定恢复时间点 restore_command = 'cp archive/%f %p' archive_cleanup_command='pg_archivecleanup archive %r' recovery_target_time='2020-08-26 17:17:51'(步骤1时间) 9.启动数据库,查看表及表数据; gs_om -t start \d select * from tab1; 【预期输出】9.数据库启动成功 【实际输出】9.数据库启动超时,一直处于recovery状态 【原因分析】: 数据库状态异常  【测试代码】:无
【硬件类型版本】(cat /etc/system-release):openEuler release 20.03 (LTS) 【数据库版本号】(gaussdb –V): gaussdb (openGauss 2.0.1 build 18b92d01) compiled at 2021-08-04 20:41:29 commit 0 last mr 【测试环境】:arm+openEuler 【被测功能】:PITR 【测试类型】:功能测试 【对应用例号】:无 【预置条件】:单机 【测试步骤】: 1.开启归档开关 gs_guc reload -N all -D dn1 -c "archive_mode=on" gs_guc reload -N all -D dn1 -c "archive_command='cp %p archive/%f'" 2.创建表1并插入数据,并查询当前时间 CREATE TABLE tab1(a1 int); INSERT INTO tab1 VALUES (1),(2),(3); select now(); 3.进行数据库全量备份 select pg_start_backup('bak_time001'); select pg_stop_backup(); select pg_switch_xlog(); 4.创建表2并插入数据 CREATE TABLE tab2(a1 int); INSERT INTO tab2 VALUES (1),(2),(3); 5.打包dn1目录 tar -cvzf data.tar dn1 6.模拟数据库故障 停止集群 gs_om -t stop 删除dn1目录 rm -rf dn1 7.使用备份文件恢复 解压备份文件 tar -zxvf data.tar 8.新增配置文件recovery.conf ,指定恢复时间点 restore_command = 'cp archive/%f %p' archive_cleanup_command='pg_archivecleanup archive %r' recovery_target_time='2020-08-26 17:17:51'(步骤1时间) 9.启动数据库,查看表及表数据; gs_om -t start \d select * from tab1; 【预期输出】9.数据库启动成功 【实际输出】9.数据库启动超时,一直处于recovery状态 【原因分析】: 数据库状态异常  【测试代码】:无
Comments (
7
)
Sign in
to comment
Status
Accepted
Backlog
Confirmed
已答复
Canceled
挂起
Fixing
Done
待回归
测试中
Accepted
Assignees
Not set
cchen676
struggle_hw
Assignee
Collaborator
+Assign
+Mention
Labels
sig/storageengine
Not set
Projects
Unprojected
Unprojected
Milestones
No related milestones
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
C++
1
https://gitee.com/opengauss/openGauss-server.git
git@gitee.com:opengauss/openGauss-server.git
opengauss
openGauss-server
openGauss-server
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register