Repository navigation
Conversation
The region move tests move regions on their own schedule. The balancer also moves regions. A balancer move can drop an admin compaction request, so a region skips its compaction and the test sees stale guideposts. A balancer move can also move SYSTEM.CATALOG during DDL. The base class now turns off the balancer before each test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟡 Changes recommended
The balancing-disable fixture runs after table and index creation, leaving the first parameter set exposed to a catalog-move race unless balancing is also disabled immediately after driver setup.
1 open issue
What changed in this PR
This test-only change reduces balancer-related flakiness in Phoenix’s region-move integration tests while preserving deliberate region moves.
Changes:
- Adds an inherited
@Beforefixture that disables automatic balancing. - Uses a distinct fixture name so subclasses that hide
doSetupstill inherit it.
| File | Description |
|---|---|
| phoenix-core/src/it/java/org/apache/phoenix/end2end/ParallelStatsDisabledWithRegionMovesIT.java | Adds and documents the per-test balancer-disabling fixture. |
Review effort: Balanced
| props.put(QueryServices.PHOENIX_POST_DUMMY_PROCESS, | ||
| TestScanningResultPostDummyResultCaller.class.getName()); | ||
| props.put(PHOENIX_INDEX_CDC_CONSUMER_ENABLED, Boolean.toString(false)); | ||
| setUpTestDriver(new ReadOnlyProps(props.entrySet().iterator())); |
There was a problem hiding this comment.
Fixed in 146a28f. The class setup now turns the balancer off right after the cluster starts, before any per-parameter setup creates tables, and the per-test hook stays for the subclass that replaces the class setup. The aggregate and upsert-select region move suites pass with this change.
(Claude Code)
The per-test hook runs after the per-parameter setup, which already creates tables and indexes. The class setup now turns the balancer off right after the cluster starts. The per-test hook stays for the subclass that replaces the class setup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The parameter setup of the query suites creates tables before the per-test hook runs, and one subclass replaces the class setup. The parameter setup now turns the balancer off first, so the first parameter set also creates its tables with the balancer off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Self-review (Claude Code, pr-review-toolkit) — Copilot could not review this PR because of a review quota limit, so this is an automated self-review in its place. Important issues
Strengths
Recommendation: changes needed (one line, to close the first-parameter gap above). 🤖 Generated with Claude Code |
|
Precommit note: the failures in this run are not related to this change. Each one is a known problem on master.
(Claude Code) |
|
Response to the self-review (Claude Code):
|

The tests that move regions fail now and then in CI. One test sees one guidepost too few. Another gets a table-exists error when it creates a new table. The cause is the HBase balancer, which moves regions at any time. A balancer move can make a major compaction skip a region, so that region keeps its old guideposts. A move of the catalog table during table creation makes the client retry fail. PHOENIX-8086 fixes that product window separately.
This change is test-only. The base class turns off the balancer before each test. A separate per-test method does this, because several subclasses hide the shared setup method. The explicit region moves in the tests still run.
🤖 Generated with Claude Code