Repository navigation
Conversation
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>
There was a problem hiding this comment.
🟢 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
@Afterhook 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
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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