You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2021/05/04 13:36:00 UTC

[jira] [Commented] (HBASE-25838) Use double instead of Double in StochasticLoadBalancer

    [ https://issues.apache.org/jira/browse/HBASE-25838?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338992#comment-17338992 ] 

Hudson commented on HBASE-25838:
--------------------------------

Results for branch master
	[build #281 on builds.a.o|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/master/281/]: (/) *{color:green}+1 overall{color}*
----
details (if available):

(/) {color:green}+1 general checks{color}
-- For more information [see general report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/master/281/General_20Nightly_20Build_20Report/]






(/) {color:green}+1 jdk8 hadoop3 checks{color}
-- For more information [see jdk8 (hadoop3) report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/master/281/JDK8_20Nightly_20Build_20Report_20_28Hadoop3_29/]


(/) {color:green}+1 jdk11 hadoop3 checks{color}
-- For more information [see jdk11 report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/master/281/JDK11_20Nightly_20Build_20Report_20_28Hadoop3_29/]


(/) {color:green}+1 source release artifact{color}
-- See build output for details.


(/) {color:green}+1 client integration test{color}


> 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
>
> {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)