You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Duo Zhang (Jira)" <ji...@apache.org> on 2021/05/03 14:29:00 UTC
[jira] [Created] (HBASE-25838) Use double instead of Double in
StochasticLoadBalancer
Duo Zhang created HBASE-25838:
---------------------------------
Summary: 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
{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)