Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#23094] YSQL: Fix flaky test TestPgRegressFeaturePartition
Summary: The test became flaky after commit 7c8343d fixed the logic for cascaded drops on columns. The test yb_feature_hash_types creates a domain and creates a table with a key column that has the domain as its type. However, since we currently don't support key column drops (#22902), the test fails when the cleanUpCustomEntities() function in BasePgSQLTest.java attempts to drop the domain (that has the key column as a dependant object) during cleanup. Moreover, the test is flaky because sometimes the table may be dropped before the domain, as the order of the drops depends on the pg_depend scan output, which isn't deterministic because pg_depend doesn't have a primary key and internally uses ybctid. Fix the test flakiness by dropping the table in yb_feature_hash_types before the test clean up logic. Jira: DB-12029 Test Plan: ./yb_build.sh --java-test 'org.yb.pgsql.TestPgRegressFeaturePartition' -n 20 Reviewers: myang Reviewed By: myang Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D36329
- Loading branch information