Skip to content

PHOENIX-7970 :- QueryDatabaseMetaDataIT.testShowTables fails after SYSTEM.HA_GROUP is added to the SYSTEM schema#2585

Open
lokiore wants to merge 1 commit into
apache:PHOENIX-7562-feature-newfrom
lokiore:PHOENIX-7970-showtables-ha-group
Open

PHOENIX-7970 :- QueryDatabaseMetaDataIT.testShowTables fails after SYSTEM.HA_GROUP is added to the SYSTEM schema#2585
lokiore wants to merge 1 commit into
apache:PHOENIX-7562-feature-newfrom
lokiore:PHOENIX-7970-showtables-ha-group

Conversation

@lokiore

@lokiore lokiore commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Description of the problem including root cause

The consistent-failover work on the PHOENIX-7562-feature-new line adds a new system table, SYSTEM.HA_GROUP (PhoenixDatabaseMetaData.SYSTEM_HA_GROUP_TABLE), to the SYSTEM schema. This raises the number of tables in the SYSTEM schema from 12 to 13.

QueryDatabaseMetaDataIT.testShowTables hard-codes the previous count when running SHOW TABLES IN SYSTEM, so on this feature line it fails with:

java.lang.AssertionError: expected:<12> but was:<13>

Fix

Test-only change:

  • Update the expected SYSTEM table count from 12 to 13.
  • Add assertTrue(tables.contains("HA_GROUP")) so the test documents that SYSTEM.HA_GROUP is expected to be present.

No production code is changed. The SHOW TABLES IN SYSTEM LIKE 'FUNC%' assertion (expecting exactly one match, FUNCTION) is untouched.

Tests

QueryDatabaseMetaDataIT#testShowTables runs and passes locally on the PHOENIX-7562-feature-new base (Tests run: 1, Failures: 0, Errors: 0).

AI disclosure

Per the ASF generative-tooling policy, this change was produced with the assistance of generative AI. The commit carries the trailer Generated-by: Claude Code (Opus 4.8 (1M context)). All changes were reviewed before submission.

Notes / backward compatibility

No API, wire, or on-disk format changes; this is an integration-test assertion update scoped to the feature branch's new SYSTEM table. No backward-compatibility impact.

…STEM.HA_GROUP is added to the SYSTEM schema

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))
@lokiore lokiore changed the title QueryDatabaseMetaDataIT.testShowTables fails after SYSTEM.HA_GROUP is added to the SYSTEM schema PHOENIX-7970 :- QueryDatabaseMetaDataIT.testShowTables fails after SYSTEM.HA_GROUP is added to the SYSTEM schema Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants