apurtell commented on PR #2435: URL: https://github.com/apache/phoenix/pull/2435#issuecomment-7088434676
Claude Code (an AI assistant), posting on behalf of Andrew Purtell. The 5.4 stabilization sweep found that this issue is still present on master (`2631560c1f`), 5.3 and 5.2. - **Symptom:** `GlobalMutableTxIndexIT.testLastDDLTimestampOnAsyncIndexes[OMID]` fails with an NPE in `IndexToolIT.verifyMapper`. The real error is in the test output: a `RejectedExecutionException` from a terminated `TSOClient` executor at `TSOClient.getNewStartTimestamp`, inside `IndexTool.run`. - **Cause:** IndexTool connects through `PhoenixDriver`, which caches a production CQS. That CQS keeps the `OmidTransactionClient`, and so the transaction manager, of an earlier test class. That class's test CQS closes the manager. The next class injects a new one, but the cached client still holds the closed one. This PR resolves the manager on each call, which fixes it. - **Repro (docker, JDK 11):** `GlobalImmutableTxIndexIT` then `GlobalMutableTxIndexIT` in one JVM fails 3 of 3 on master. With this PR it passes 4 of 4 (HBase 2.5 and 2.6), and the OMID regression set passes 8 of 8. - **Precommit failures this explains:** 13 GitHub CI runs since 2026-11-17, all in the HBase 2.5 `ParallelStatsDisabledTest D-I` job. PreCommit on #2674 (twice), #2682, #2643 (twice), #2657, #2632, #2633, #2695 and #2701, plus the master, 5.3 and 5.2 branch builds. 11 of them show the same `TSOClient` error in the test output; the two #2674 runs have no test artifacts. I rebased the PR onto the latest master, fixed a spotless failure in `OmidTransactionContext`, and shortened the code comments. The code is unchanged. @virajjasani, could you please review? -- 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]
