You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dave Brosius (JIRA)" <ji...@apache.org> on 2012/05/03 05:01:54 UTC

[jira] [Created] (CASSANDRA-4213) DynamicEndpointSnitch calculates score incorrectly

Dave Brosius created CASSANDRA-4213:
---------------------------------------

             Summary: 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.0.9
            Reporter: Dave Brosius
            Priority: Trivial


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

        

[jira] [Updated] (CASSANDRA-4213) DynamicEndpointSnitch calculates score incorrectly

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-4213:
--------------------------------------

    Reviewer: brandon.williams
    Assignee: Dave Brosius  (was: Brandon Williams)
    
> 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: Dave Brosius
>            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

        

[jira] [Updated] (CASSANDRA-4213) DynamicEndpointSnitch calculates score incorrectly

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brandon Williams updated CASSANDRA-4213:
----------------------------------------

    Affects Version/s:     (was: 1.0.9)
        Fix Version/s: 1.2
    
> DynamicEndpointSnitch calculates score incorrectly
> --------------------------------------------------
>
>                 Key: CASSANDRA-4213
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4213
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Dave Brosius
>            Assignee: Brandon Williams
>            Priority: Trivial
>             Fix For: 1.2
>
>
> 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

        

[jira] [Updated] (CASSANDRA-4213) DynamicEndpointSnitch calculates score incorrectly

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Ellis updated CASSANDRA-4213:
--------------------------------------

    Affects Version/s: 1.2

ah, got it.  marking affects: 1.2
                
> 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

        

[jira] [Commented] (CASSANDRA-4213) DynamicEndpointSnitch calculates score incorrectly

Posted by "Dave Brosius (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Assigned] (CASSANDRA-4213) DynamicEndpointSnitch calculates score incorrectly

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brandon Williams reassigned CASSANDRA-4213:
-------------------------------------------

    Assignee: Brandon Williams
    
> DynamicEndpointSnitch calculates score incorrectly
> --------------------------------------------------
>
>                 Key: CASSANDRA-4213
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4213
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Dave Brosius
>            Assignee: Brandon Williams
>            Priority: Trivial
>             Fix For: 1.2
>
>
> 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

        

[jira] [Updated] (CASSANDRA-4213) DynamicEndpointSnitch calculates score incorrectly

Posted by "Dave Brosius (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Brosius updated CASSANDRA-4213:
------------------------------------

    Attachment: 4213_use_double_math.diff

against trunk
                
> DynamicEndpointSnitch calculates score incorrectly
> --------------------------------------------------
>
>                 Key: CASSANDRA-4213
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4213
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            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

        

[jira] [Commented] (CASSANDRA-4213) DynamicEndpointSnitch calculates score incorrectly

Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13268450#comment-13268450 ] 

Jonathan Ellis commented on CASSANDRA-4213:
-------------------------------------------

Any reason not to put this in 1.0 and 1.1 branches?
                
> DynamicEndpointSnitch calculates score incorrectly
> --------------------------------------------------
>
>                 Key: CASSANDRA-4213
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4213
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            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