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 2010/02/05 21:50:27 UTC
[jira] Created: (CASSANDRA-771) Allow range queries against
non-primary nodes for a given range
Allow range queries against non-primary nodes for a given range
---------------------------------------------------------------
Key: CASSANDRA-771
URL: https://issues.apache.org/jira/browse/CASSANDRA-771
Project: Cassandra
Issue Type: Improvement
Reporter: Jonathan Ellis
Assignee: Jonathan Ellis
Currently any node being down will break range queries that need that node's primary range, even if RF > 1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-771) Allow range queries against
non-primary nodes for a given range
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830459#action_12830459 ]
Jonathan Ellis commented on CASSANDRA-771:
------------------------------------------
minor change: I've edited the comments above the restrictTo call to read
// make sure we only get keys from the current range (and not other replicas that might be on the nodes).
// usually this will be only one range, but sometimes the intersection of a wrapping Range with a non-wrapping
// is two disjoint, non-wrapping Ranges separated by a gap.
List<AbstractBounds> restricted = command.range.restrictTo(currentRange);
> Allow range queries against non-primary nodes for a given range
> ---------------------------------------------------------------
>
> Key: CASSANDRA-771
> URL: https://issues.apache.org/jira/browse/CASSANDRA-771
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6
>
> Attachments: 0001-add-TokenMetadata.ringIterator-to-replace-one-offs-of-.txt, 0002-iterate-ranges-rather-than-endpoints-and-sort-endpoint.txt
>
>
> Currently any node being down will break range queries that need that node's primary range, even if RF > 1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-771) Allow range queries against
non-primary nodes for a given range
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830454#action_12830454 ]
Jonathan Ellis commented on CASSANDRA-771:
------------------------------------------
02
iterate ranges rather than endpoints, and sort endpoints by proximity
01
add TokenMetadata.ringIterator to replace one-offs of the same functionality
> Allow range queries against non-primary nodes for a given range
> ---------------------------------------------------------------
>
> Key: CASSANDRA-771
> URL: https://issues.apache.org/jira/browse/CASSANDRA-771
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Fix For: 0.6
>
> Attachments: 0001-add-TokenMetadata.ringIterator-to-replace-one-offs-of-.txt, 0002-iterate-ranges-rather-than-endpoints-and-sort-endpoint.txt
>
>
> Currently any node being down will break range queries that need that node's primary range, even if RF > 1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-771) Allow range queries against
non-primary nodes for a given range
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-771:
-------------------------------------
Component/s: Core
Priority: Minor (was: Major)
> Allow range queries against non-primary nodes for a given range
> ---------------------------------------------------------------
>
> Key: CASSANDRA-771
> URL: https://issues.apache.org/jira/browse/CASSANDRA-771
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6
>
> Attachments: 0001-add-TokenMetadata.ringIterator-to-replace-one-offs-of-.txt, 0002-iterate-ranges-rather-than-endpoints-and-sort-endpoint.txt
>
>
> Currently any node being down will break range queries that need that node's primary range, even if RF > 1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-771) Allow range queries against
non-primary nodes for a given range
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830601#action_12830601 ]
Jonathan Ellis commented on CASSANDRA-771:
------------------------------------------
> they've changed significantly
take a closer look -- all that's changed is the loop setup using TM.ringIterator. the loop body is unchanged, except for removing the redundant foundCount variables.
> Allow range queries against non-primary nodes for a given range
> ---------------------------------------------------------------
>
> Key: CASSANDRA-771
> URL: https://issues.apache.org/jira/browse/CASSANDRA-771
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6
>
> Attachments: 0001-add-TokenMetadata.ringIterator-to-replace-one-offs-of-.txt, 0002-iterate-ranges-rather-than-endpoints-and-sort-endpoint.txt
>
>
> Currently any node being down will break range queries that need that node's primary range, even if RF > 1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-771) Allow range queries against
non-primary nodes for a given range
Posted by "Stu Hood (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12830597#action_12830597 ]
Stu Hood commented on CASSANDRA-771:
------------------------------------
* endPointOfIntrest
* Neither DatacenterShard nor RackAware have tests, and they've changed significantly
Other than that, looks good.
> Allow range queries against non-primary nodes for a given range
> ---------------------------------------------------------------
>
> Key: CASSANDRA-771
> URL: https://issues.apache.org/jira/browse/CASSANDRA-771
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6
>
> Attachments: 0001-add-TokenMetadata.ringIterator-to-replace-one-offs-of-.txt, 0002-iterate-ranges-rather-than-endpoints-and-sort-endpoint.txt
>
>
> Currently any node being down will break range queries that need that node's primary range, even if RF > 1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CASSANDRA-771) Allow range queries against
non-primary nodes for a given range
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-771:
-------------------------------------
Attachment: 0002-iterate-ranges-rather-than-endpoints-and-sort-endpoint.txt
0001-add-TokenMetadata.ringIterator-to-replace-one-offs-of-.txt
> Allow range queries against non-primary nodes for a given range
> ---------------------------------------------------------------
>
> Key: CASSANDRA-771
> URL: https://issues.apache.org/jira/browse/CASSANDRA-771
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Attachments: 0001-add-TokenMetadata.ringIterator-to-replace-one-offs-of-.txt, 0002-iterate-ranges-rather-than-endpoints-and-sort-endpoint.txt
>
>
> Currently any node being down will break range queries that need that node's primary range, even if RF > 1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CASSANDRA-771) Allow range queries against
non-primary nodes for a given range
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12834864#action_12834864 ]
Hudson commented on CASSANDRA-771:
----------------------------------
Integrated in Cassandra #357 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/357/])
> Allow range queries against non-primary nodes for a given range
> ---------------------------------------------------------------
>
> Key: CASSANDRA-771
> URL: https://issues.apache.org/jira/browse/CASSANDRA-771
> Project: Cassandra
> Issue Type: Improvement
> Components: Core
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Minor
> Fix For: 0.6
>
> Attachments: 0001-add-TokenMetadata.ringIterator-to-replace-one-offs-of-.txt, 0002-iterate-ranges-rather-than-endpoints-and-sort-endpoint.txt
>
>
> Currently any node being down will break range queries that need that node's primary range, even if RF > 1.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.