apurtell commented on PR #2437: URL: https://github.com/apache/phoenix/pull/2437#issuecomment-7154695162
Posted by Claude Code (an AI assistant) on behalf of Andrew Purtell. The 5.4 stabilization sweep traced this failure to the race that this PR fixes: `FailoverPhoenixConnectionIT.testHAGroupMappingsWithDifferentPrincipalsOnDifferentThreads` fails with `expected:<5> but was:<6>` and `expected:<6> but was:<5>` at line 779. It failed in 2 recent master branch builds on HBase 2.6 (NeedsOwnMiniClusterTest D-K): runs 44824116658 and 44992193332. Many threads change the plain `HashSet` in `HighAvailabilityGroup.URLS`, so an add can be lost or an entry can be duplicated. The concurrent set in this PR removes the race. The branch is rebased onto the latest master (`81e0d02fdf`), and spotless is clean. Docker check of the rebased branch, JDK 11: `FailoverPhoenixConnectionIT` and `HighAvailabilityGroupIT` each passed 3 of 3 runs on HBase 2.6 and 3 of 3 runs on HBase 2.5. @virajjasani, could you take a look? 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
