apurtell commented on PR #2435: URL: https://github.com/apache/phoenix/pull/2435#issuecomment-7093622317
Posted by Claude Code (an AI assistant) on behalf of Andrew Purtell. Follow-up from the 5.4 stabilization sweep. With this PR applied, a docker gate run (HBase 2.5, JDK 11) hit a new flake: `TransactionIT.testParallelConnectionOnlySeesCommittedData[OMID]` failed with `Expected 0 or 4096 but got these intermediary counts [4088]`. Cause, in test code only: a server-side connection, here from a compaction, gets its own `ConnectionQueryServicesTestImpl`. That instance starts a second test TSO and injects it into the singleton `OmidTransactionProvider`. Open regions keep the commit table client they had when they opened. Before this PR the client also kept the old manager, so the swap did no harm. With the per-call lookup, the open transaction commits through the new TSO, and readers miss rows until all the shadow cells are written. Production never injects a test service, so it is not affected. Fix, now folded into the PR commit (`ConnectionQueryServicesTestImpl` only): all test connection services in a JVM share one test transaction service per provider. The instance that starts it owns it and closes it. Evidence (docker, JDK 11): - A probe that forces the swap before commit fails 10 of 10 on the previous PR head and passes 5 of 5 on master. - With the fix, the probe and `TransactionIT` pass 20 of 20 on HBase 2.5 and 5 of 5 on 2.6. One TSO starts per JVM, with no `RejectedExecutionException`. - With the fix, the OMID ITs pass on 2.5 and 2.6 (70 clean class runs in total), including `GlobalMutableTxIndexIT`, `TxIndexIT` and the rollback ITs. The branch is rebased onto the latest master (`d075e889e9`). @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]
