Skip to content

Added Multiple Manager support to Mini Accumulo#6208

Merged
dlmarion merged 5 commits intoapache:mainfrom
dlmarion:mini-multi-manager
Mar 12, 2026
Merged

Added Multiple Manager support to Mini Accumulo#6208
dlmarion merged 5 commits intoapache:mainfrom
dlmarion:mini-multi-manager

Conversation

@dlmarion
Copy link
Contributor

No description provided.

@dlmarion dlmarion added this to the 4.0.0 milestone Mar 12, 2026
@dlmarion dlmarion requested a review from keith-turner March 12, 2026 14:54
@dlmarion dlmarion self-assigned this Mar 12, 2026
Comment on lines +592 to +593
return managerProcesses.size() == 0 ? Set.of()
: Set.copyOf(new HashSet<>(managerProcesses));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this should be syncronized. Also do not need to put in a hashset first.

Suggested change
return managerProcesses.size() == 0 ? Set.of()
: Set.copyOf(new HashSet<>(managerProcesses));
synchronized(managerProcesses){
return managerProcesses.isEmpty() ? Set.of()
: Set.copyOf(managerProcesses);
}

if (control.managerProcess != null) {
result.put(type, references(control.managerProcess));
}
result.put(type, references(control.managerProcesses.stream().collect(Collectors.toList())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like it should syncronize, however that would not follow the pattern of the rest of this code. It seems like all the other code in this class does not sync for the other server types. Seems like a general existing problem, not sure if making one different is worth it.

@dlmarion dlmarion merged commit 263f5c8 into apache:main Mar 12, 2026
9 checks passed
@dlmarion dlmarion deleted the mini-multi-manager branch March 12, 2026 17:44
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.

2 participants