apurtell commented on PR #2699:
URL: https://github.com/apache/phoenix/pull/2699#issuecomment-7085470684
Posted by Claude Code on behalf of Andrew Purtell.
The three failing checks are unrelated to this change (pom-only ZooKeeper
3.8.4 → 3.8.6 bump). Because a ZooKeeper change could plausibly matter, each
failure was traced to its cause. Both test failures also occur on ZooKeeper
3.8.4: the same methods failed on 5.2 branch builds 44601997914 (`aed68bd8f5`)
and 44660378132 (`6cde8121f9`), and on master and 5.3, all with
`zookeeper.version` 3.8.4.
**NeedsOwnMiniClusterTest L-P**:
`PermissionNSEnabledWithCustomAccessControllerIT.testSuperUserCanChangePerms`
fails with "Expected exception was not thrown for user 'regularUser1_N000116'".
This is a race in the test's wait helper:
1. `BasePermissionsIT.updateACLs` waits until every region server
`AccessController` has refreshed its permission cache. It finds them with
`findCoprocessor(AccessController.class.getName())`.
2. HBase `CoprocessorHost.findCoprocessor(String)` matches the exact class
name. In the `*WithCustomAccessController*` variants the loaded class is
`BasePermissionsIT$CustomAccessController`, so the list is empty and the wait
returns at once. The helper also never checks the master, which authorizes
`GRANT`.
3. In the log, `REVOKE FROM 'regularUser1_N000116'` removes the permission
at 12:37:50.822. The next step, `GRANT 'A' TO 'regularUser3_N000118'` as
regularUser1, starts at .823. The master and RS `ZKPermissionWatcher` caches
drop regularUser1 at .823/.824. The grant was checked against the stale cache
and succeeded.
ZooKeeper delivers the ACL change notification here, but the defect is that
the test does not wait for it. The cached CI history shows the same failure in
`PermissionNSDisabledWithCustomAccessControllerIT` and `PermissionsCacheIT` on
3.8.4.
**NeedsOwnMiniClusterTest Q-Z**:
`UncoveredGlobalIndexRegionScannerIT.testUncoveredQueryWithPhoenixRowTimestampAndAllPkCols[uncovered=true,salted=true]`
fails with `RejectedExecutionException` from a `Terminated`
`ThreadPoolManager$ShutdownOnUnusedThreadPoolExecutor` ("completed tasks = 2").
This is a server-side race in the reference-counted shared pool on 5.2:
1. Each `UncoveredGlobalIndexRegionScanner` takes a reference to the shared
"Uncovered Global Index" pool and calls `shutdownNow()` on close.
2. `shutdownNow()` decrements the count and then shuts down, outside the
`getExecutor` lock. A scanner that calls `getExecutor` between those two steps
sees a live pool and takes a reference to a pool that is about to terminate.
3. In the log, handler 3 creates the pool at 13:05:00.423, closes its
scanner and shuts the pool down at .428. Handler 4's scanner on another salt
bucket submits to the same pool at .429 and is rejected.
Master and 5.3 no longer have this race. PHOENIX-7670 (#2252) moved
uncovered index scans to a region-server-level pool that scanners do not shut
down. It is not on 5.2.
**Test coverage**: Same as #2698. Most of the report is the known
categorization gap, which pending category fixes cover. `PherfMainIT`,
`SchemaReaderIT`, `TenantTableOperationWorkloadIT` and
`TenantViewOperationWorkloadIT` are listed under "should have run" only because
the L-P and Q-Z jobs stopped at `phoenix-core`.
Conclusion: these failures are not caused by this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]