[Bug] incosistent state of pg_operator after init CB cluster

未关闭
#2,169 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
c, postgresql
领域
databases

调研方向

Start by reading the GPCHECKCAT output and the cluster initialization path that populates pg_operator catalogs across the coordinator and segments; the issue does not name source files or tests. Compare oprrest and oprjoin for the listed operator OIDs after creating a cluster and running GPCHECKCAT -O DBNAME. Done means those catalog values match on the coordinator and all segments.

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

描述

type: Bug
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

After we are initialyzed CBDB cluster we found some inconsistent of PG catalog by checking by run GPCHECKCAT command on main database in online mode.
We catch the next errors:
`----------------------------------------------------
Object oid: 17472
Table name: pg_operator

Name of test which found this issue: inconsistent_pg_operator
         oprrest is '5040' on content -1 (qc1.local:5432)
         oprrest is '1302' on all other segments
         oprjoin is '5041' on content -1 (qc1.local:5432)
         oprjoin is '1303' on all other segments

Object oid: 17476
Table name: pg_operator

Name of test which found this issue: inconsistent_pg_operator
         oprrest is '5040' on content -1 (qc1.local:5432)
         oprrest is '1302' on all other segments
         oprjoin is '5041' on content -1 (qc1.local:5432)
         oprjoin is '1303' on all other segments

Object oid: 17534
Table name: pg_operator

Name of test which found this issue: inconsistent_pg_operator
         oprrest is '5040' on content -1 (qc1.local:5432)
         oprrest is '1302' on all other segments
         oprjoin is '5041' on content -1 (qc1.local:5432)
         oprjoin is '1303' on all other segments

Object oid: 17477
Table name: pg_operator

Name of test which found this issue: inconsistent_pg_operator
         oprrest is '5040' on content -1 (qc1.local:5432)
         oprrest is '1302' on all other segments
         oprjoin is '5041' on content -1 (qc1.local:5432)
         oprjoin is '1303' on all other segments

Object oid: 17535
Table name: pg_operator

Name of test which found this issue: inconsistent_pg_operator
         oprrest is '5040' on content -1 (qc1.local:5432)
         oprrest is '1302' on all other segments
         oprjoin is '5041' on content -1 (qc1.local:5432)
         oprjoin is '1303' on all other segments

`

This problem was repeated every time when we are try to create CB cluster again in many times.

What you think should happen instead

Possible is was in internal cluster creating logic.

How to reproduce

After creating new Cluster try to run GPCHECKCAT -O DBNAME

Operating System

Astra 1.8.2 analog Debain 12

Anything else

Some information from PG operator on problem DB

Image
Are you willing to submit PR?
  • Yes, I am willing to submit a PR!
Code of Conduct
主要语言
C
星标
1.4k
派生
273
平均合并
4 天 6 小时
30 天内合并 PR
105

环境准备

从这里开始

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

apache/cloudberry 的其他 Issue

查看 apache/cloudberry 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

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