cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Dusbabek (JIRA)" <>
Subject [jira] Updated: (CASSANDRA-902) Bootstrapping might skip needed ranges.
Date Wed, 17 Mar 2010 19:45:27 GMT


Gary Dusbabek updated CASSANDRA-902:

    Attachment: bootstrap-range-addr-calculation.txt

patched against trunk.  The same code exists in 5, so is likely a problem there too.

> Bootstrapping might skip needed ranges.
> ---------------------------------------
>                 Key: CASSANDRA-902
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 0.6
>            Reporter: Gary Dusbabek
>            Assignee: Gary Dusbabek
>             Fix For: 0.6
>         Attachments: bootstrap-range-addr-calculation.txt
> Bootstrapper.getRangeWithSources should return a multimap with as many keys as myRangeAddresses.
 But with the way the two loops are structured, they are not guaranteed to ever examine all
of myRanges.  To see why, consider a scenario where the inner-loop breaks on the first element
in myRanges.  myRangeAddresses will only ever have one key in it.
> Solution is to swap the order of the loops.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message