cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CASSANDRA-1722) Unbounded key range only ever scans first node in ring
Date Thu, 11 Nov 2010 22:18:21 GMT

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

Jonathan Ellis updated CASSANDRA-1722:
--------------------------------------

    Fix Version/s: 0.6.8

Also committed to 0.6.

> Unbounded key range only ever scans first node in ring
> ------------------------------------------------------
>
>                 Key: CASSANDRA-1722
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1722
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.6.7, 0.7 beta 3
>            Reporter: Jonathan Ellis
>            Assignee: Stu Hood
>             Fix For: 0.6.8, 0.7.0
>
>         Attachments: 0001-Add-guard-to-the-Bounds-special-case-to-treat-min-rang.txt
>
>
> {code:Java}
>         List<AbstractBounds> ranges = getRestrictedRanges(new Bounds(leftToken,
p.getMinimumToken()));
> {code}
> when called with empty start key this means we have a Bounds(minToken, minToken), which
hits the getRR special case
> {code:Java}
>         // special case for bounds containing exactly 1 token
>         if (queryRange instanceof Bounds && queryRange.left.equals(queryRange.right))
>         {
>             if (logger.isDebugEnabled())
>                 logger.debug("restricted single token match for query " + queryRange);
>             return Collections.singletonList(queryRange);
>         }
> {code}
> Looks like this broke as a side effect of CASSANDRA-1442.  Prior to that a bounds from
[T, minToken] was considered "up to infinity" by getRR so would span multiple nodes.

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


Mime
View raw message