Skip to content

[YSQL] Add separate GUCs for catalog version bump & negative caching #29941

@kai-franz

Description

@kai-franz

Jira Link: DB-19797

Description

We currently have one PG autoflag, yb_test_make_all_ddl_statements_incrementing, that controls both (1) whether to make all DDLs bump the catalog version, and (2) whether to enable negative caching.

For older versions that do not have the autoflag, we cannot safely enable this flag. We need to make sure all tservers are bumping the catalog version for all DDLs before we enable negative caching, and a single gflag upgrade is not atomic across the entire cluster.

Instead, we need two flags: one that makes all DDLs bump the catalog version, and a second one that enables negative caching. We can then safely enable these features in two steps: first, turn on the first flag, then when all tservers have restarted, we can enable the second flag.

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions