Skip to content

PHOENIX-8116 VarBinaryEncoded1IT should drop tables after each test - #2748

Open
apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-8116
Open

apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-8116

Conversation

@apurtell

@apurtell apurtell commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

This test class can exhaust the heap of its shared test JVM in a full IT run. The cluster then aborts, and a later test hangs until the class timeout.

The class runs many parameterized cases and creates hundreds of tables, but it drops them only when the class ends. When the test driver drops a Phoenix table, the HBase table stays. So every region stays open, and heap use grows through the class. This change is test-only. The class now drops its metadata and tables after each test, as the alter table test does. In a reused fork, this also drops tables that earlier classes left. Classes in one fork run in sequence, so no other class still uses them.

🤖 Generated with Claude Code

VarBinaryEncoded1IT runs 16 tests with 16 parameter sets. Each case
creates a new table, and most upsert select cases create two. The class
creates about 367 tables and drops none until the class ends. Every open
region keeps a memstore chunk and copies of the region configuration, so
the heap of the shared test JVM grows through the class. In a full run
the JVM ran out of heap, ZooKeeper sessions expired, the master and
region server aborted, and an OMID test hung until the class timeout.

Drop all tables after each test. The test driver does not drop the HBase
table when Phoenix drops a table, so drop the Phoenix metadata and then
the HBase tables, as AlterTableIT does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the test-only cleanup change intended to reduce heap exhaustion.

No open issues 🎉

What changed in this PR

This test-only change addresses heap exhaustion in VarBinaryEncoded1IT by cleaning up tables after each parameterized test rather than waiting until the class finishes.

Changes:

  • Adds a JUnit @After hook to delete Phoenix metadata.
  • Disables and drops non-system HBase tables to release accumulated regions.
File Description
phoenix-core/​src/​it/​java/​org/​apache/​phoenix/​end2end/​VarBinaryEncoded1IT.java Adds per-test metadata and table cleanup to limit shared test JVM heap usage.

Review effort: Balanced

@apurtell

apurtell commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Precommit note: the failures in this run are not related to this change. Each one is a known problem on master.

(Claude Code)

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