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

Dave Brosius commented on CASSANDRA-4213:
-----------------------------------------

I believe this code is new

http://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blobdiff;f=src/java/org/apache/cassandra/locator/DynamicEndpointSnitch.java;h=b0249169601add3e9e222348cfbbc9722676cf39;hp=3b80e67ccc52f6de9e1172a974a8faf490bce3c3;hb=0cc97d91c0cf92cd8476b5a5d0bdf7d3d66a45fc;hpb=5b4a7f29980621a162fdc202a17bd3300c20e298
                
> DynamicEndpointSnitch calculates score incorrectly
> --------------------------------------------------
>
>                 Key: CASSANDRA-4213
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4213
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2
>            Reporter: Dave Brosius
>            Assignee: Brandon Williams
>            Priority: Trivial
>             Fix For: 1.2
>
>         Attachments: 4213_use_double_math.diff
>
>
> updateScore does double = long/long math which calculates the score wrong 1/3 
> becomes 0.0 not 0.3333
> need 1 to be cast to double

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to