[ 
https://issues.apache.org/jira/browse/HBASE-25838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Duo Zhang resolved HBASE-25838.
-------------------------------
    Fix Version/s: 2.3.6
                   2.4.3
                   2.5.0
                   3.0.0-alpha-1
     Hadoop Flags: Reviewed
       Resolution: Fixed

Pushed to branch-2.3+.

Thanks [~niuyulin] for reviewing.

> Use double instead of Double in StochasticLoadBalancer
> ------------------------------------------------------
>
>                 Key: HBASE-25838
>                 URL: https://issues.apache.org/jira/browse/HBASE-25838
>             Project: HBase
>          Issue Type: Sub-task
>          Components: Balancer, Performance
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>            Priority: Major
>             Fix For: 3.0.0-alpha-1, 2.5.0, 2.4.3, 2.3.6
>
>
> {code}
>   // to save and report costs to JMX
>   private Double curOverallCost = 0d;
>   private Double[] tempFunctionCosts;
>   private Double[] curFunctionCosts;
> {code}
> It seems we never do null check on these field or the elements, so I do not 
> see any reason we should use Double here. Just use double instead.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to