Repository navigation
PHOENIX-8118 BasePermissionsIT should wait for the master and custom AccessController ACL caches - #2750
Open
apurtell wants to merge 1 commit into
Open
PHOENIX-8118 BasePermissionsIT should wait for the master and custom AccessController ACL caches#2750apurtell wants to merge 1 commit into
apurtell wants to merge 1 commit into
Conversation
…AccessController ACL caches updateACLs waits until the AuthManager of each AccessController sees the ACL change. The helper found controllers by exact class name, so it found none when the cluster loads a subclass of AccessController. It also scanned only the region servers and skipped the master. The master checks GRANT and REVOKE requests against its own cache, which ZooKeeper refreshes asynchronously. A deny check right after REVOKE could thus pass on a stale master cache and the test failed with "Expected exception was not thrown". Look up controllers by class type, so that subclasses match, and include the master controller in the wait. The deny checks are unchanged. 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 ACL cache synchronization changes.
No open issues 🎉
What changed in this PR
Addresses permission-test flakiness by making BasePermissionsIT wait for ACL cache updates on the master and custom access controllers. Changes are test-only; deny checks remain unchanged.
Changes:
- Include the master’s access controller in cache-update waits.
- Use class-based lookup to discover
AccessControllersubclasses. - Handle controllers without a region in diagnostic logging.
| File | Description |
|---|---|
phoenix-core/src/it/java/org/apache/phoenix/end2end/BasePermissionsIT.java |
Extends ACL cache synchronization to master and custom controllers, with region-safe logging. |
Review effort: Balanced
This was referenced Dec 4, 2026
Merged
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.
The permission test for super users fails in CI because a deny check right after a revoke passes. It fails mostly in the classes with a custom access controller. This issue replaces PHOENIX-6597, which is closed as a duplicate.
The helper that waits for ACL changes has two faults. It finds access controllers only by exact class name, so it finds none when the cluster loads a subclass. The wait then ends at once. It also checks only the region servers, but the master checks grants and revokes against its own cache. ZooKeeper refreshes that cache asynchronously. This change is test-only. The helper now finds subclasses and also waits for the master. The deny checks do not change.
🤖 Generated with Claude Code