keith-turner commented on code in PR #5537:
URL: https://github.com/apache/accumulo/pull/5537#discussion_r2162325533
##########
server/manager/src/main/java/org/apache/accumulo/manager/Manager.java:
##########
@@ -1818,44 +1586,6 @@ public boolean isUpgrading() {
return upgradeCoordinator.getStatus() !=
UpgradeCoordinator.UpgradeStatus.COMPLETE;
}
- void initializeBalancer() {
- var localTabletBalancer =
Property.createInstanceFromPropertyName(getConfiguration(),
- Property.MANAGER_TABLET_BALANCER, TabletBalancer.class, new
TableLoadBalancer());
- localTabletBalancer.init(balancerEnvironment);
- tabletBalancer = localTabletBalancer;
- }
-
- Class<?> getBalancerClass() {
- return tabletBalancer.getClass();
- }
-
- void getAssignments(SortedMap<TServerInstance,TabletServerStatus>
currentStatus,
- Map<String,Set<TServerInstance>> currentTServerGroups,
- Map<KeyExtent,UnassignedTablet> unassigned,
Map<KeyExtent,TServerInstance> assignedOut) {
- AssignmentParamsImpl params =
- AssignmentParamsImpl.fromThrift(currentStatus, currentTServerGroups,
- unassigned.entrySet().stream().collect(HashMap::new,
- (m, e) -> m.put(e.getKey(),
- e.getValue().getLastLocation() == null ? null
- : e.getValue().getLastLocation().getServerInstance()),
- Map::putAll),
- assignedOut);
- tabletBalancer.getAssignments(params);
- }
-
- public TabletStateStore getTabletStateStore(DataLevel level) {
Review Comment:
Yes it was unused, noticed the IDE said was unused when refactoring. Would
not surprise me if we have other unused methods lurking around w/ all of the
changes in main.
--
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]