This is an automated email from the ASF dual-hosted git repository.
lokiore pushed a commit to branch PHOENIX-7562-feature-new
in repository https://gitbox.apache.org/repos/asf/phoenix.git
The following commit(s) were added to refs/heads/PHOENIX-7562-feature-new by
this push:
new 5060b6dc8d PHOENIX-7970 :- QueryDatabaseMetaDataIT.testShowTables
fails after SYSTEM.HA_GROUP is added to the SYSTEM schema (#2585)
5060b6dc8d is described below
commit 5060b6dc8daec8ad47b0a85108d58e138bdf9558
Author: Lokesh Khurana <[email protected]>
AuthorDate: Mon Jul 27 11:06:40 2026 -0700
PHOENIX-7970 :- QueryDatabaseMetaDataIT.testShowTables fails after
SYSTEM.HA_GROUP is added to the SYSTEM schema (#2585)
The consistent-failover work adds a new system table, SYSTEM.HA_GROUP,
raising the SYSTEM schema table count from 12 to 13. testShowTables
hard-codes the old count, so "SHOW TABLES IN SYSTEM" now fails with
expected:<12> but was:<13>.
Update the expected count to 13 and assert the returned set contains
HA_GROUP so the test documents that the table is expected in the SYSTEM
schema. Test-only change; no production code is affected. The
"SHOW TABLES IN SYSTEM LIKE 'FUNC%'" assertion is unchanged.
Generated-by: Claude Code (Opus 4.8 (1M context))
---
.../it/java/org/apache/phoenix/end2end/QueryDatabaseMetaDataIT.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryDatabaseMetaDataIT.java
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryDatabaseMetaDataIT.java
index 60e0aba9f7..dc2aedf590 100644
---
a/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryDatabaseMetaDataIT.java
+++
b/phoenix-core/src/it/java/org/apache/phoenix/end2end/QueryDatabaseMetaDataIT.java
@@ -434,9 +434,10 @@ public class QueryDatabaseMetaDataIT extends
ParallelStatsDisabledIT {
tables.add(rs.getString("TABLE_NAME"));
assertEquals("SYSTEM", rs.getString("TABLE_SCHEM"));
}
- assertEquals(12, tables.size());
+ assertEquals(13, tables.size());
assertTrue(tables.contains("CATALOG"));
assertTrue(tables.contains("FUNCTION"));
+ assertTrue(tables.contains("HA_GROUP"));
tables.clear();
// Add a filter on the table name.