[Bug] - seg1 ERROR 58P01 could not open file base/: No such file or directory md.c 549
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by tracing the reported pg_relation_size failure through the md.c paths named in the stack traces, then inspect how the missing relation file is handled during checkpoint writes. The report includes no reproduction steps, source locations beyond md.c, or test to run. Done means identifying and fixing the cause so a missing relation file during a size lookup does not leave checkpointing and WAL cleanup stuck; the issue provides no way to verify this yet.
索引モデルが issue の本文から書いたものです。
説明
Apache Cloudberry version
PostgreSQL 14.4 (Apache Cloudberry 2.1.0-incubating build dev) on x86_64-pc-linux-gnu, compiled by gcc (Astra 1.8.2) , 64-bit compiled
What happened
Hi,
We are created a testing Cloudberry DB 2.1 cluster for testing high load procedures (QC 2, QE7, 28 Primary segment without Mirrors)
And on some day in High Loaded (by CPU, and DISKS) hour 22.00 we catched the next error
2026-11-08 22:06:26.872364 MSK,"svc_etl","dwh",p2124283,th1254390144,"10.136.7.43","9777",2026-11-08 22:06:0
5 MSK,0,con379331,cmd5,seg1,,,,sx1,"ERROR","58P01","could not open file ""base/17019/226790"": No such file
or directory",,,,,,"select pg_catalog.pg_relation_size(195392, 'main')",0,,"md.c",549,"Stack trace:
1 0x56ee1416672f postgres errstart + 0x3b9
2 0x56ee14166374 postgres errstart_cold + 0x20
3 0x56ee13f9072d postgres + 0x13f9072d
4 0x56ee13f90d93 postgres mdnblocks + 0x25
5 0x56ee13f930f2 postgres smgrnblocks + 0x48
6 0x56ee139fc37f postgres table_block_relation_size + 0xe7
7 0x56ee13f46df0 postgres + 0x13f46df0
8 0x56ee13f4ac3d postgres RelationGetNumberOfBlocksInFork + 0x11c
9 0x56ee1399974f postgres + 0x1399974f
10 0x56ee1399b520 postgres heap_beginscan + 0x151
11 0x56ee139bfc4e postgres + 0x139bfc4e
12 0x56ee139c05d6 postgres systable_beginscan + 0x270
13 0x56ee13a80bad postgres + 0x13a80bad
14 0x56ee13a80abb postgres GetAllAOCSFileSegInfo + 0xd4
15 0x56ee13a779a3 postgres + 0x13a779a3
16 0x56ee13ff7b03 postgres + 0x13ff7b03
17 0x56ee13ff8b37 postgres + 0x13ff8b37
18 0x56ee13ff8efe postgres pg_relation_size + 0x1dc
19 0x56ee13c90982 postgres + 0x13c90982
20 0x56ee13c926e1 postgres ExecInterpExprStillValid + 0x57
21 0x56ee13cf2744 postgres + 0x13cf2744
22 0x56ee13cf27ad postgres + 0x13cf27ad
23 0x56ee13cf2a3a postgres + 0x13cf2a3a
24 0x56ee13ca982a postgres + 0x13ca982a
25 0x56ee13ca96f4 postgres + 0x13ca96f4
26 0x56ee13c9b06a postgres + 0x13c9b06a
27 0x56ee13c9f7df postgres + 0x13c9f7df
28 0x56ee13c9c77a postgres standard_ExecutorRun + 0x401
29 0x56ee13c9c302 postgres ExecutorRun + 0xee
30 0x56ee13fa172b postgres + 0x13fa172b
"
2026-11-08 22:06:26.872552 MSK,"svc_etl","dwh",p2124283,th1254390144,"10.136.7.43","9777",2026-11-08 22:06:0
5 MSK,0,con379331,cmd5,seg1,,,,sx1,"LOG","00000","An exception was encountered during the execution of state
ment: select pg_catalog.pg_relation_size(195392, 'main')",,,,,,"select pg_catalog.pg_relation_size(195392, '
main')",0,,"elog.c",2129,
Steps before error:
- was loaded a huge data on problem table from PXF (Hadoop) (this table was reloaded every day and had no problems before)
- trying to get size of table and catched this ERROR
After that we had a problem with checkpoiner process and wal logs can not deleted before we restarted CBDB cluster and problem segment was recovered by self applying WAL logs from problem moment.
We can see checkpoiner error in the next part of segment log:
2026-11-08 22:06:53.329128 MSK,,,p3416186,th1254390144,,,,0,,,seg1,,,,,"LOG","00000","checkpoint starting: w
al",,,,,,,0,,"xlog.c",9315,
2026-11-08 22:06:59.643160 MSK,,,p3416186,th1254390144,,,,0,,,seg1,,,,,"ERROR","58P01","could not open file
""base/17019/226790"": No such file or directory",,,,,"writing block 0 of relation base/17019/226790",,0,,"m
d.c",549,"Stack trace:
1 0x56ee1416672f postgres errstart + 0x3b9
2 0x56ee14166374 postgres errstart_cold + 0x20
3 0x56ee13f9072d postgres + 0x13f9072d
4 0x56ee13f91b02 postgres + 0x13f91b02
5 0x56ee13f90c0d postgres mdwrite + 0x38
6 0x56ee13f93070 postgres smgrwrite + 0x43
7 0x56ee13f4a9a4 postgres + 0x13f4a9a4
8 0x56ee13f4a40b postgres + 0x13f4a40b
9 0x56ee13f49c01 postgres + 0x13f49c01
10 0x56ee13f4a6a3 postgres CheckPointBuffers + 0x15
11 0x56ee13a2cfd1 postgres + 0x13a2cfd1
12 0x56ee13a2c599 postgres CreateCheckPoint + 0x9a2
13 0x56ee13eb5c5a postgres CheckpointerMain + 0x5fd
14 0x56ee13a894d4 postgres AuxiliaryProcessMain + 0x7ae
15 0x56ee13eca13f postgres + 0x13eca13f
16 0x56ee13ec71d3 postgres + 0x13ec71d3
17 0x7ee14ba5b050 libc.so.6 + 0x4ba5b050
18 0x7ee14bb1d844 libc.so.6 __select + 0xb4
19 0x56ee13ec4859 postgres + 0x13ec4859
20 0x56ee13ec40a2 postgres PostmasterMain + 0x16af
21 0x56ee13d53b4f postgres + 0x13d53b4f
22 0x7ee14ba4624a libc.so.6 + 0x4ba4624a
23 0x7ee14ba46305 libc.so.6 __libc_start_main + 0x85
24 0x56ee13934aa1 postgres _start + 0x21
"
We had this problem twise a 1 month when we are activly tested our process on this cluster.
What you think should happen instead
In Greenplum in my practise i already seen the same problems, but these problems did not lead to same problems in checkpointer process and lock wal log deleting state.
How to reproduce
We can not reproduced this problem manually but catched twice a month in High Load evening hours.
Operating System
Astra 1.8.2 analog Debain 12
Anything else
No response
Are you willing to submit PR?
- Yes, I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct.
- 主要言語
- C
- スター
- 1.5k
- フォーク
- 280
- 平均マージ
- 4日 21時間
- マージ済み PR(30日)
- 122
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/cloudberry のほかの issue
-
type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/cloudberry#2459 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
psql tab completion broken for storage servers, tags, profiles and resource groups (pre-PG15 query format)対応中かも @allenvox が 18 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
apache/cloudberry#2316 ·
メンテナーはふだん 2 日以内に返信
-
gpexpand first stage fails: 'SyncPackages' object has no attribute 'ret' (extension sync never runs; regression)対応中かも @talmacschen-arch が 166 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
apache/cloudberry#1825 ·
メンテナーはふだん 2 日以内に返信
-
[Bug] ORCA returns wrong system column values through a partially pruned CTE consumer対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンtype: Bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
apache/cloudberry#2458 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[Bug] Window Sort above ROLLUP gets a larger memory quota and runs slower after "Reserve memory for one partition at a time"対応中かも @Alena0704 が 1 日前に担当しました。 オープンtype: Bug
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
apache/cloudberry#2446 · 担当者 1 名 ·
メンテナーはふだん 2 日以内に返信
apache/cloudberry の issue をすべて見る
似ている issue
-
HXsetdir strdup leakオープン
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
ly05010419/MacNativeGames#2459 ·
メンテナーはふだん 1 日以内に返信
-
2024.2 Backport Required 2025.2 Backport Required 2026.1 Backport Required 2026.2 Backport Required area/build-framework kind/enhancement priority/medium
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
yugabyte/yugabyte-db#39930 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
shinyquagsire23/OpenJKDF2#540 ·
メンテナーはふだん 12 日以内に返信
-
Prison work hall: laundry and kitchen stations stand at bare walls, the hatch has no counter or signオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Life-Framework/Life-Framework#5939 ·
メンテナーはふだん 1 日以内に返信