diff --git a/src/yb/integration-tests/minicluster-snapshot-test.cc b/src/yb/integration-tests/minicluster-snapshot-test.cc index 7e781f9dfbdb..cdec58e3a73f 100644 --- a/src/yb/integration-tests/minicluster-snapshot-test.cc +++ b/src/yb/integration-tests/minicluster-snapshot-test.cc @@ -716,7 +716,7 @@ TEST_F(PgCloneTest, YB_DISABLE_TEST_IN_SANITIZERS(AbortMessage)) { // The test is disabled in Sanitizers as ysql_dump fails in ASAN builds due to memory leaks // inherited from pg_dump. -TEST_F(PgCloneTest, YB_DISABLE_TEST_IN_SANITIZERS(CloneAfterDropTable)) { +TEST_P(PgCloneTestWithColocatedDBParam, YB_DISABLE_TEST_IN_SANITIZERS(CloneAfterDropTable)) { // Clone to a time before a drop table and check that the table exists with correct data. // 1. Create a table and load some data. // 2. Mark time t. diff --git a/src/yb/master/catalog_manager.cc b/src/yb/master/catalog_manager.cc index 176f620161fa..78c093cfb9d0 100644 --- a/src/yb/master/catalog_manager.cc +++ b/src/yb/master/catalog_manager.cc @@ -7586,9 +7586,10 @@ Status CatalogManager::GetTableSchemaInternal(const GetTableSchemaRequestPB* req resp->set_colocated(table->colocated()); if (table->IsColocatedUserTable()) { - auto* tablegroup = tablegroup_manager_->FindByTable(table->id()); - if (tablegroup) { - resp->set_tablegroup_id(tablegroup->id()); + // Set the tablegroup_id for colocated user tables only after Colocation is GA. + if (IsTablegroupParentTableId(table->LockForRead()->pb.parent_table_id())) { + resp->set_tablegroup_id( + GetTablegroupIdFromParentTableId(table->LockForRead()->pb.parent_table_id())); } }