You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Christopher Tubbs (JIRA)" <ji...@apache.org> on 2017/01/11 21:40:16 UTC
[jira] [Assigned] (ACCUMULO-4549) Remove duplicate init functions
in TabletBalancer
[ https://issues.apache.org/jira/browse/ACCUMULO-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Tubbs reassigned ACCUMULO-4549:
-------------------------------------------
Assignee: Christopher Tubbs
> Remove duplicate init functions in TabletBalancer
> -------------------------------------------------
>
> Key: ACCUMULO-4549
> URL: https://issues.apache.org/jira/browse/ACCUMULO-4549
> Project: Accumulo
> Issue Type: Improvement
> Reporter: Adam J Shook
> Assignee: Christopher Tubbs
> Priority: Minor
> Fix For: 2.0.0
>
>
> There are two {{init}} functions with similar signatures in the {{TabletLoadBalancer}} class that could result in an end-user overriding the wrong function and their object may never be initialized.
> {{Master}} (1) calls the {{TabletBalancer#init(ServerConfigurationFactory)}} which is not what the regex load balancer is overriding (2), and the {{TabletBalancer}} doesn't call the other init function (3).
> Come up with a plan for compatibility and remove the duplicate functions.
> (1) https://github.com/apache/accumulo/blob/1.7/server/master/src/main/java/org/apache/accumulo/master/Master.java#L589
> (2) https://github.com/apache/accumulo/blob/1.7/server/base/src/main/java/org/apache/accumulo/server/master/balancer/HostRegexTableLoadBalancer.java#L257
> (3) https://github.com/apache/accumulo/blob/1.7/server/base/src/main/java/org/apache/accumulo/server/master/balancer/TabletBalancer.java#L57
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)