402 Star 1.4K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

开启synchronous_commit='remote_apply'后,事务提交延迟过大

已验收
缺陷
创建于  
2023-06-21 10:51

【标题描述】:
开启synchronous_commit='remote_apply'后,事务提交延迟过大,如下所示很小的数据量,需要3秒的等待时间。

MogDB=# select now();insert into t4 select generate_series(1,1000);select now();
              now              
-------------------------------
 2023-06-20 21:37:06.859697-04
(1 row)

INSERT 0 1000
              now              
-------------------------------
 2023-06-20 21:37:09.866949-04
(1 row)

MogDB=#

【测试环境】(单机/1主x备x级联备):
一主一同步备,主库无压力

【预期输出】:
事务提交基本无延迟

【实际输出】:
事务提交延迟3秒

评论 (4)

Movead 创建了缺陷

Hey @Movead, 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 @Movead, 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 .

jiexiao1413 添加协作者pengjiong
pengjiong 取消协作者pengjiong
pengjiong 添加协作者吴岳川
吴岳川 负责人设置为Cross-罗
Cross-罗 任务状态待办的 修改为已确认
Cross-罗 任务状态已确认 修改为修复中
Cross-罗 任务状态修复中 修改为已完成

验收日期:2023-8-21
验收版本:gsql ((openGauss 5.1.0 build fd7e64df) compiled at 2023-07-26 11:32:47 commit 0 last mr )
验收结论:通过
优化前平均耗时:3000ms
输入图片说明
优化后平均耗时:30ms
输入图片说明

jiexiao1413 添加协作者裴琳倩
裴琳倩 任务状态已完成 修改为待回归
裴琳倩 任务状态待回归 修改为测试中
裴琳倩 任务状态测试中 修改为已验收

验收日期:2023-10-18
验收版本:gsql ((openGauss 5.0.1 build f766addf) compiled at 2023-10-07 18:07:51 commit 0 last mr )
验收结论:通过
输入图片说明

登录 后才可以发表评论

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

搜索帮助