This probably means the server terminated abnormally

未关闭
#1,563 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
c, postgresql

调研方向

报告指向 cdbdispatchresult.c:510 和 ExecSetVariableStmt 路径,并显示失败的命令为 set optimizer=off。首先使用报告中的 segment 设置重现该命令,并检查 segment/server 日志。完成的标准是确定异常终止的原因,并验证该命令不再关闭连接。

由索引模型根据 Issue 内容生成。

描述

Hi Team,

I am facing unexpected termination on different processes:

2026-02-04 11:47:27.282318 CST,"myuser","mydb",p570503,th1268955328,"10.10.247.124","58584",2026-02-04 04:34:59 CST,0,con2459,cmd1,seg-1,,,,sx1,"ERROR","58M01","Error on receive from seg0 10.10.247.122:50000 pid=570505: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.",,,,,,"set optimizer=off",0,,"cdbdispatchresult.c",510,"Stack trace:
1 0x7f1a4d50d918 libpostgres.so errstart + 0x258
2 0x7f1a4d513676 libpostgres.so ThrowErrorData + 0x16
3 0x7f1a4d590a15 libpostgres.so CdbDispatchSetCommand + 0x285
4 0x7f1a4d52ea03 libpostgres.so + 0x4d52ea03
5 0x7f1a4d52f017 libpostgres.so ExecSetVariableStmt + 0x4c7
6 0x7f1a4d3c2392 libpostgres.so standard_ProcessUtility + 0xb02
7 0x7f1a4d3c27a3 libpostgres.so ProcessUtility + 0x113
8 0x7f1a4d3c0185 libpostgres.so + 0x4d3c0185
9 0x7f1a4d3c02ab libpostgres.so + 0x4d3c02ab
10 0x7f1a4d3c08b3 libpostgres.so PortalRun + 0x2a3
11 0x7f1a4d3bd826 libpostgres.so PostgresMain + 0x1556
12 0x7f1a4d31c5f0 libpostgres.so + 0x4d31c5f0
13 0x7f1a4d31d5f3 libpostgres.so PostmasterMain + 0xe03
14 0x4027db postgres main + 0x56b
15 0x7f1a4c62a610 libc.so.6 + 0x4c62a610
16 0x7f1a4c62a6c0 libc.so.6 __libc_start_main + 0x80
17 0x402975 postgres _start + 0x25

Kindly can you support me in this regard.

主要语言
C
星标
1.5k
派生
280
平均合并
5 天 35 分钟
30 天内合并 PR
128

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/cloudberry 的其他 Issue

查看 apache/cloudberry 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。