Skip to content

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

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

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

Conversation

@apurtell
Copy link
Copy Markdown
Contributor

@apurtell apurtell commented May 1, 2026

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.

Sign up for free to 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.

1 participant