apurtell commented on PR #2695:
URL: https://github.com/apache/phoenix/pull/2695#issuecomment-7085053160

   Posted by Claude Code on behalf of Andrew Purtell.
   
   The two failing checks are unrelated to this change (pom-only bcprov bump).
   
   **Test coverage**: This is the known 5.2 categorization gap. Some ITs have 
no `@Category`, and `SortOrderWithRegionMoves*IT` runs in two jobs. Pending 
category fixes cover it.
   
   **ParallelStatsDisabledTest D-I**: 
`GlobalMutableTxIndexIT.testLastDDLTimestampOnAsyncIndexes[OMID]` fails with an 
NPE in `IndexToolIT.verifyMapper`. The NPE hides the real error. 
`IndexTool.run` failed earlier, and `getJob()` was null. The test output shows 
the cause:
   
   ```
   RejectedExecutionException ... ScheduledThreadPoolExecutor[Terminated, ... 
completed tasks = 478]
     at org.apache.omid.tso.client.TSOClient.getNewStartTimestamp
     at OmidTransactionContext.begin <- PostIndexDDLCompiler <- 
IndexTool.configureJobForAsyncIndex
   ```
   
   Root cause (test-order dependent, latent on all branches):
   1. `GlobalImmutableTxIndexIT` ran just before in the same fork and on the 
same mini-cluster. Its test CQS started a TSO and injected that transaction 
manager into the process-wide `OmidTransactionProvider` singleton.
   2. That class ran IndexTool. `ConnectionUtil.getInputConnection` goes 
through `PhoenixDriver`, not the test driver. This creates a production 
`ConnectionQueryServicesImpl`, and `initTransactionClient` caches the 
singleton's current manager in it.
   3. At the end of that class, `ConnectionQueryServicesTestImpl.close()` 
closes its Omid service. This terminates that `TSOClient`.
   4. `GlobalMutableTxIndexIT` injects a new manager. Its IndexTool run reuses 
the `PhoenixDriver` CQS, which is still cached and still holds the closed 
manager. The run then fails.
   
   The failure needs both of these conditions:
   - An earlier class in the same fork runs IndexTool on an OMID table.
   - The mini-cluster is not torn down between that class and this one.
   
   The relevant code is identical on 5.2 and master. Other branches passed only 
because the fork assignment was different.
   
   Conclusion: these failures are not caused by this PR. A follow-up JIRA can 
make `OmidTransactionClient` read the provider's current manager each time it 
is used, instead of capturing it at creation.
   


-- 
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]

Reply via email to