Repository navigation
PHOENIX-8082 BackwardCompatibilityIT reuses a cached connection after a ZK port is reused - #2714
Merged
Merged
Conversation
… a ZK port is reused Each test starts a new mini cluster. When the new cluster gets the ZooKeeper port of an earlier one, the new client URL maps to the cached connection of the stopped cluster, and the test fails. Add a unique principal to the URL, so each cluster gets its own cached connection. 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 mini-cluster cache-isolation change.
No open issues 🎉
What changed in this PR
Prevents backward-compatibility tests from reusing a stopped mini cluster’s cached connection services when a ZooKeeper port is reused.
Changes:
- Adds a unique principal to each mini cluster’s current-client URL to isolate cache entries.
- Leaves the old-client URL and production code unchanged.
| File | Description |
|---|---|
| phoenix-core/src/it/java/org/apache/phoenix/end2end/BackwardCompatibilityIT.java | Adds a unique principal and explains the cache-isolation behavior. |
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) |
asf-gitbox-commits
pushed a commit
that referenced
this pull request
Dec 5, 2026
… a ZK port is reused (#2714) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Andrew Purtell <apurtell@salesforce.com>
asf-gitbox-commits
pushed a commit
that referenced
this pull request
Dec 5, 2026
… a ZK port is reused (#2714) 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 failed in CI because the catalog table was not found. In that run, two mini clusters in the same fork got the same ZooKeeper client port. Each test starts a new mini cluster and builds the new client URL from its port. The driver caches connection services by URL, and test cleanup does not remove the entry. When a port repeats, the driver returns the services of a stopped cluster, so the first DDL fails.
The change adds a unique principal to the new client URL. The principal is part of the cache key, so each cluster gets its own connection services. A principal without a keytab does not start a Kerberos login. The old client URL does not change. This is a test-only change.
🤖 Generated with Claude Code