Skip to content

fixes coordinator location advertisements - #6665

Open
keith-turner wants to merge 1 commit into
apache:mainfrom
keith-turner:coordinators-locations-fix
Open

keith-turner wants to merge 1 commit into
apache:mainfrom
keith-turner:coordinators-locations-fix

Conversation

@keith-turner

Copy link
Copy Markdown
Contributor

Only compaction coordinators that had resource groups assigned to them were advertised in zookeeper. That meant potentially less coordinators were available to compactors for operations that can be done on any coordinator. For example if there were 5 coordinators and 2 compactor resource groups, then only 2 coordinators would have been advertised. After this change all 5 coordinators would be advertised.

The core of this change is modifying what is stored in ZK from :

Map<ResourceGroup, HostAndPort>

to

Map<HostAndPort, Set<ResourceGroup>>

Only compaction coordinators that had resource groups assigned to them
were advertised in zookeeper. That meant potentially less coordinators
were available to compactors for operations that can be done on any
coordinator.  For example if there were 5 coordinators and 2 compactor
resource groups, then only 2 coordinators would have been advertised.
After this change all 5 coordinators would be advertised.

The core of this change is modifying what is stored in ZK from :

```
Map<ResourceGroup, HostAndPort>
```

to

```
Map<HostAndPort, Set<ResourceGroup>>
```
@keith-turner keith-turner added this to the 4.0.0 milestone Nov 22, 2026

This branch has not been deployed

No deployments
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