Skip to content

PHOENIX-7819 HighAvailabilityGroup.URLS inner Set must be thread-safe - #2437

Open
apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-7819
Open

PHOENIX-7819 HighAvailabilityGroup.URLS inner Set must be thread-safe#2437
apurtell wants to merge 1 commit into
apache:masterfrom
apurtell:PHOENIX-7819

Conversation

@apurtell

Copy link
Copy Markdown
Contributor

When multiple threads register HA URL infos for the same HAGroupInfo, computeIfAbsent() returns the same HashSet instance to every thread, which then concurrently call add() on it. java.util.HashSet is not thread-safe. Concurrent add() is undefined behavior and can lose entries.

@palashc

palashc commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@palashc
palashc requested a review from lokioreJuly 17, 2026 17:16
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@apurtell@palashc@lokiore