cloudnative-pg / cloudnative-pg/plugin-barman-cloud

Create new cluster using plugin configuration but always get this error in replica pod.

未关闭
#463 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Go
星标
191
派生
72
平均合并
1 天 16 小时
30 天内合并 PR
18

描述

{"level":"error","ts":"2025-08-08T02:41:53.322975793Z","msg":"Error while handling GRPC request","logging_pod":"cluster-example-1","info":{"Server":{"Client":{"Client":{}},"InstanceName":"cluster-example-1","SpoolDirectory":"/controller/wal-restore-spool","PGDataPath":"/var/lib/postgresql/data/pgdata","PGWALPath":"/var/lib/postgresql/data/pgdata/pg_wal"},"FullMethod":"/cnpgi.wal.v1.WAL/Restore"},"error":"WAL file not found","stacktrace":"github.com/cloudnative-pg/machinery/pkg/log.(*logger).Error\n\t/go/pkg/mod/github.com/cloudnative-pg/machinery@v0.2.0/pkg/log/log.go:125\ngithub.com/cloudnative-pg/cnpg-i-machinery/pkg/pluginhelper/http.(*Server).Start.logFailedRequestsUnaryServerInterceptor.func2\n\t/go/pkg/mod/github.com/cloudnative-pg/cnpg-i-machinery@v0.3.0/pkg/pluginhelper/http/grpc.go:51\ngoogle.golang.org/grpc.NewServer.chainUnaryServerInterceptors.chainUnaryInterceptors.func1\n\t/go/pkg/mod/google.golang.org/grpc@v1.72.2/server.go:1208\ngithub.com/cloudnative-pg/cnpg-i/pkg/wal._WAL_Restore_Handler\n\t/go/pkg/mod/github.com/cloudnative-pg/cnpg-i@v0.2.1/pkg/wal/wal_grpc.pb.go:214\ngoogle.golang.org/grpc.(*Server).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.72.2/server.go:1405\ngoogle.golang.org/grpc.(*Server).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.72.2/server.go:1815\ngoogle.golang.org/grpc.(*Server).serveStreams.func2.1\n\t/go/pkg/mod/google.golang.org/grpc@v1.72.2/server.go:1035"}

贡献指南

打开贡献指南

调研方向

从 WAL Restore 的 gRPC 入口点开始,检查插件配置如何映射到 /controller/wal-restore-spool 以及副本的 PostgreSQL 数据路径。重现集群创建过程,追踪请求的 WAL 文件缺失的原因,并验证副本恢复是否能在没有该错误的情况下完成。

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

评估

技术栈
go, grpc, postgresql
领域
backend-api-design, databases
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

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