Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YSQL] Enable DDL atomicity feature by default #22097

Closed
1 task done
myang2021 opened this issue Apr 22, 2024 · 0 comments
Closed
1 task done

[YSQL] Enable DDL atomicity feature by default #22097

myang2021 opened this issue Apr 22, 2024 · 0 comments
Assignees
Labels
area/ysql Yugabyte SQL (YSQL) kind/new-feature This is a request for a completely new feature priority/medium Medium priority issue

Comments

@myang2021
Copy link
Contributor

myang2021 commented Apr 22, 2024

Jira Link: DB-11028

Description

Currently the DDL atomicity feature is turned off by default. All the jenkins tests are passing with the feature turned on so it is ready for turning on by default.

This involves changing the default value of several gflags from false to true.

--ysql_yb_ddl_rollback_enabled
--report_ysql_ddl_txn_status_to_master
--ysql_ddl_transaction_wait_for_ddl_verification

Issue Type

kind/new-feature

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

  • I confirm this issue does not contain any sensitive information.
@myang2021 myang2021 added area/ysql Yugabyte SQL (YSQL) status/awaiting-triage Issue awaiting triage labels Apr 22, 2024
@myang2021 myang2021 self-assigned this Apr 22, 2024
@yugabyte-ci yugabyte-ci added kind/new-feature This is a request for a completely new feature priority/medium Medium priority issue labels Apr 22, 2024
@myang2021 myang2021 removed kind/new-feature This is a request for a completely new feature priority/medium Medium priority issue status/awaiting-triage Issue awaiting triage labels Apr 22, 2024
@yugabyte-ci yugabyte-ci added kind/new-feature This is a request for a completely new feature priority/medium Medium priority issue labels Apr 22, 2024
myang2021 added a commit that referenced this issue Apr 30, 2024
Summary:
This diff enables DDL atomicity feature by default.
(1) changing the default value of several gflags from false to true.
--ysql_yb_ddl_rollback_enabled
--report_ysql_ddl_txn_status_to_master
--ysql_ddl_transaction_wait_for_ddl_verification

(2) code cleanup related to (1), for example, some unit tests needed to
explicitly enable one or more of these 3 gflags. Now that they are turned on by
default, those code are removed.

(3) other unit tests update related to (1). For example, in pg_packed_row-test.cc,
the test output has changed from `PACKED_ROW[2]` to `PACKED_ROW[3]`. The
number in the bracket represents the table schema version. With DDL atomicity, a DDL
such as `ALTER TABLE test DROP COLUMN v2` causes the schema version of table
test to bump by 2 after the DDL commits. Without DDL atomicity, the schema
version of table test used to only bump up by 1 after the DDL commits.
Jira: DB-11028

Test Plan: Jenkins run

Reviewers: hsunder

Reviewed By: hsunder

Subscribers: ycdcxcluster, hsunder

Differential Revision: https://phorge.dev.yugabyte.com/D30471
myang2021 added a commit that referenced this issue Apr 30, 2024
Summary:
This diff enables DDL atomicity feature by default.
(1) changing the default value of several gflags from false to true.
--ysql_yb_ddl_rollback_enabled
--report_ysql_ddl_txn_status_to_master
--ysql_ddl_transaction_wait_for_ddl_verification

(2) code cleanup related to (1), for example, some unit tests needed to
explicitly enable one or more of these 3 gflags. Now that they are turned on by
default, those code are removed.

(3) other unit tests update related to (1). For example, in pg_packed_row-test.cc,
the test output has changed from `PACKED_ROW[2]` to `PACKED_ROW[3]`. The
number in the bracket represents the table schema version. With DDL atomicity, a DDL
such as `ALTER TABLE test DROP COLUMN v2` causes the schema version of table
test to bump by 2 after the DDL commits. Without DDL atomicity, the schema
version of table test used to only bump up by 1 after the DDL commits.
Jira: DB-11028

Original commit: 1bbe619 / D30471

Test Plan: Jenkins run

Reviewers: hsunder

Reviewed By: hsunder

Subscribers: hsunder, ycdcxcluster

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D34636
@m-iancu m-iancu closed this as completed May 9, 2024
svarnau pushed a commit that referenced this issue May 25, 2024
Summary:
This diff enables DDL atomicity feature by default.
(1) changing the default value of several gflags from false to true.
--ysql_yb_ddl_rollback_enabled
--report_ysql_ddl_txn_status_to_master
--ysql_ddl_transaction_wait_for_ddl_verification

(2) code cleanup related to (1), for example, some unit tests needed to
explicitly enable one or more of these 3 gflags. Now that they are turned on by
default, those code are removed.

(3) other unit tests update related to (1). For example, in pg_packed_row-test.cc,
the test output has changed from `PACKED_ROW[2]` to `PACKED_ROW[3]`. The
number in the bracket represents the table schema version. With DDL atomicity, a DDL
such as `ALTER TABLE test DROP COLUMN v2` causes the schema version of table
test to bump by 2 after the DDL commits. Without DDL atomicity, the schema
version of table test used to only bump up by 1 after the DDL commits.
Jira: DB-11028

Test Plan: Jenkins run

Reviewers: hsunder

Reviewed By: hsunder

Subscribers: ycdcxcluster, hsunder

Differential Revision: https://phorge.dev.yugabyte.com/D30471
ZhenYongFan pushed a commit to ZhenYongFan/yugabyte-db that referenced this issue Jun 15, 2024
Summary:
This diff enables DDL atomicity feature by default.
(1) changing the default value of several gflags from false to true.
--ysql_yb_ddl_rollback_enabled
--report_ysql_ddl_txn_status_to_master
--ysql_ddl_transaction_wait_for_ddl_verification

(2) code cleanup related to (1), for example, some unit tests needed to
explicitly enable one or more of these 3 gflags. Now that they are turned on by
default, those code are removed.

(3) other unit tests update related to (1). For example, in pg_packed_row-test.cc,
the test output has changed from `PACKED_ROW[2]` to `PACKED_ROW[3]`. The
number in the bracket represents the table schema version. With DDL atomicity, a DDL
such as `ALTER TABLE test DROP COLUMN v2` causes the schema version of table
test to bump by 2 after the DDL commits. Without DDL atomicity, the schema
version of table test used to only bump up by 1 after the DDL commits.
Jira: DB-11028

Original commit: 1bbe619 / D30471

Test Plan: Jenkins run

Reviewers: hsunder

Reviewed By: hsunder

Subscribers: hsunder, ycdcxcluster

Tags: #jenkins-ready

Differential Revision: https://phorge.dev.yugabyte.com/D34636
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ysql Yugabyte SQL (YSQL) kind/new-feature This is a request for a completely new feature priority/medium Medium priority issue
Projects
None yet
Development

No branches or pull requests

3 participants