yugabyte/yugabyte-db

[yb-admin] ysql_catalog_version always returns 0

Open

#11.096 aperta il 14 gen 2022

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)C (1003 fork)batch import
area/documentationgood first issuehelp wantedkind/bugstatus/awaiting-triagetemp/docs-migration

Metriche repository

Star
 (8229 star)
Metriche merge PR
 (Merge medio 17g 21h) (92 PR mergiate in 30 g)

Descrizione

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.

Guida contributor