Skip to content

PHOENIX-8109 System table snapshot upgrade tests should turn off the HBase rolling upgrade chore - #2741

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

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

Conversation

@apurtell

@apurtell apurtell commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Some upgrade tests restore system table snapshots. In CI, they failed with a timeout during the catalog upgrade. The snapshots do not set a store file tracker, so the HBase rolling upgrade chore adds this setting to their descriptors. In the failing run, the chore changed the catalog descriptor just after the Phoenix upgrade changed it. The Phoenix upgrade waits for an exact descriptor match, so the wait times out.

This change is test-only. The shared base class turns off the rolling upgrade chore, so only Phoenix changes the restored descriptors. A real catalog upgrade soon after an upgrade from HBase 2.4 can hit the same wait. That product case is a separate discussion.

🤖 Generated with Claude Code

…HBase rolling upgrade chore

The tests restore SYSTEM table snapshots that have no store file tracker
setting. The HBase rolling upgrade chore adds the setting and changes the
table descriptors during the Phoenix upgrade. The Phoenix descriptor poll then
never sees the descriptor it waits for, and it times out. Turn off the chore.

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 reported for the test-only change disabling the interfering HBase rolling upgrade chore.

No open issues 🎉

What changed in this PR

This test-only change addresses snapshot-based system table upgrade timeouts caused by HBase concurrently modifying table descriptors.

Changes:

  • Disables the HBase rolling upgrade chore in shared snapshot test setup by setting its period to 0.
  • Documents why the chore interferes with Phoenix upgrades.
File Description
phoenix-core/​src/​it/​java/​org/​apache/​phoenix/​end2end/​LoadSystemTableSnapshotBase.java Disables the chore for snapshot upgrade tests and explains the setting.

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.

  • BackwardCompatibilityIT runs longer than the two hour limit for one test JVM on the CI runners, so Maven reports a fork timeout although every test passed. PHOENIX-8083 Split BackwardCompatibilityIT by client version #2715 splits the class by client version.
  • One scan in the HA test waited 65 seconds in the region server call queue while all request handlers were idle. This is a known HBase race, HBASE-16063, and a test change that avoids it will follow under a new JIRA.
  • The test coverage check also lists test classes that did not run, because another job of this run failed before it ran them.
  • The test coverage check fails on master for every change that runs the integration tests. Two region move variants of SortOrderIT run in two jobs, because the test runner also matches the test category of their parent class. PHOENIX-8104 ParallelStatsDisabledTest execution runs NeedsOwnMiniClusterTest cases twice #2736 fixes the test selection.

(Claude Code)

@apurtell

apurtell commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor Author

Update to the precommit note above: the HA call queue stall is now PHOENIX-8119, with the fix in #2751. The HA test clusters now use a default call queue that has no fast path handoff, so this race cannot occur on the queue that served the stalled scan.

(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