[Bug] - seg1 ERROR 58P01 could not open file base/: No such file or directory md.c 549
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C
- Estrellas
- 1.5k
- Forks
- 280
- Merge medio
- 4 d 21 h
- PR fusionados (30 d)
- 122
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/cloudberry
-
type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
apache/cloudberry#2459 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
psql tab completion broken for storage servers, tags, profiles and resource groups (pre-PG15 query format)Posiblemente ocupada @allenvox la tomó hace 18 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
apache/cloudberry#2316 ·
Los mantenedores suelen responder en 2 días
-
gpexpand first stage fails: 'SyncPackages' object has no attribute 'ret' (extension sync never runs; regression)Posiblemente ocupada @talmacschen-arch la tomó hace 166 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
apache/cloudberry#1825 ·
Los mantenedores suelen responder en 2 días
-
[Bug] ORCA returns wrong system column values through a partially pruned CTE consumerPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertotype: Bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
apache/cloudberry#2458 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
[Bug] Window Sort above ROLLUP gets a larger memory quota and runs slower after "Reserve memory for one partition at a time"Posiblemente ocupada @Alena0704 la tomó hace 1 día. Abiertotype: Bug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
apache/cloudberry#2446 · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de apache/cloudberry
Issues similares
-
HXsetdir strdup leakAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
ly05010419/MacNativeGames#2459 ·
Los mantenedores suelen responder en 1 día
-
2024.2 Backport Required 2025.2 Backport Required 2026.1 Backport Required 2026.2 Backport Required area/build-framework kind/enhancement priority/medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
yugabyte/yugabyte-db#39930 ·
Los mantenedores suelen responder en 1 día
-
RecompLauncher supportAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
shinyquagsire23/OpenJKDF2#540 ·
Los mantenedores suelen responder en 12 días
-
Prison work hall: laundry and kitchen stations stand at bare walls, the hatch has no counter or signAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Life-Framework/Life-Framework#5939 ·
Los mantenedores suelen responder en 1 día