You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2013/06/19 23:32:21 UTC

[jira] [Resolved] (CASSANDRA-5662) Wasted work in StorageService.initClient()

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

Jonathan Ellis resolved CASSANDRA-5662.
---------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.6
         Reviewer: jbellis
         Assignee: Adrian Nistor

committed!
                
> Wasted work in StorageService.initClient()
> ------------------------------------------
>
>                 Key: CASSANDRA-5662
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5662
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.5
>         Environment: any
>            Reporter: Adrian Nistor
>            Assignee: Adrian Nistor
>              Labels: patch, performance
>             Fix For: 1.2.6
>
>         Attachments: patch.diff
>
>
> The problem appears in version 1.2.5 and in revision 26018be2..  I
> attached a one-line patch that fixes it.
> In method "StorageService.initClient", the loop over
> "Gossiper.instance.getLiveMembers()" should break immediately after
> "isUp" is set to "true".  All the iterations after "isUp" is set to
> "true" do not perform any useful work, at best they just set "isUp"
> again to "true".
> Method "getCompactedRow" in class "ParallelCompactionIterable.Reducer"
> has a similar loop (over "rows"), and this loop breaks immediately
> after "inMemory" is set to "false", just like in the proposed patch.
> Other methods (e.g., "GroupByPrefix.count",
> "SecondaryIndex.buildIndexAsync") also have similar loops with similar
> breaks, just like in the proposed patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira