yugabyte/yugabyte-db

[yb-admin] ysql_catalog_version always returns 0

Open

#11,096 opened on Jan 14, 2022

View on GitHub
 (4 comments) (0 reactions) (0 assignees)C (1,003 forks)batch import
area/documentationgood first issuehelp wantedkind/bugstatus/awaiting-triagetemp/docs-migration

Repository metrics

Stars
 (8,229 stars)
PR merge metrics
 (Avg merge 17d 21h) (92 merged PRs in 30d)

Description

On recent versions, yb-admin ysql_catalog_version keeps returning zero even after catalog changes. This is because it uses CatalogManager::GetYsqlCatalogConfig which reads from the legacy protobuf catalog version, not the pg_yb_catalog_version system table. Fix yb-admin to get the version from the correct source.

Contributor guide