Repository navigation
PHOENIX-8083 Split BackwardCompatibilityIT by client version - #2715
Merged
Merged
Conversation
BackwardCompatibilityIT runs close to the 7200 second fork timeout in CI. BackwardCompatibilityIT now runs the first half of the compatible client versions. The new BackwardCompatibility2IT runs the other half in a separate fork. Each test JVM now writes its result files to its own directory. Thus the two classes do not overwrite the result files of each other in parallel forks. BackwardCompatibilityForSplittableSyscatIT still runs all client versions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for this test-only change that shards compatibility tests and isolates fork output.
No open issues 🎉
What changed in this PR
This test-only change reduces backward-compatibility test fork runtime by splitting client versions across two test classes and isolating their output files.
Changes:
- Divide client versions into two shards, each run by a separate test class.
- Store results in a per-JVM temporary directory to prevent parallel forks from overwriting files.
- Keep SQL and gold files on the classpath.
| File | Description |
|---|---|
| phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityTestUtil.java | Adds version sharding and per-JVM result paths. |
| phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java | Runs the first client-version shard. |
| phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibility2IT.java | Runs inherited tests for the second shard. |
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 was referenced Dec 4, 2026
PHOENIX-8091 IndexToolForNonTxGlobalIndexIT incremental rebuild test writes in one millisecond
#2723
Merged
asf-gitbox-commits
pushed a commit
that referenced
this pull request
Dec 5, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Andrew Purtell <apurtell@salesforce.com>
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.
The backward compatibility test runs close to the fork timeout in CI. In several runs no test fails, but failsafe kills the fork. The class starts a mini cluster for each test, runs every test for each old client version, and runs the old client as an external process.
The change splits the client versions between two test classes, and each class runs in its own fork. The two classes run in parallel, and before this change they wrote the same result files. Each test JVM now writes its result files to its own temporary directory. Gold files and SQL files still come from the class path. The splittable catalog variant still runs all client versions. This is a test-only change.
🤖 Generated with Claude Code