[ 
https://issues.apache.org/jira/browse/CASSANDRA-9875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427414#comment-15427414
 ] 

Paulo Motta commented on CASSANDRA-9875:
----------------------------------------

Sorry for the delay here. Implementation looks mostly good, but I find the UI a 
bit counter-intuitive, since if you want to rebuild multiple ranges from a 
single or small set of sources (a typical use case IMO), you'd need to repeat a 
source multiple times (one for each specified range). Unless you have a use 
case in mind for this, I think a more intuitive interface would be a host 
whitelist (similar to repair {{--hosts}}), and this would also make 
implementation a bit simpler, since you could simply add a source filter to 
RangeStreamer (avoiding the need for {{addRangesWithSources}}). This would 
still allow you to specify a direct range-source mapping by running multiple 
rebuild commands. WDYT?

Also, could you add a simple dtest?

> Rebuild from targeted replica
> -----------------------------
>
>                 Key: CASSANDRA-9875
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9875
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: sankalp kohli
>            Assignee: Geoffrey Yu
>            Priority: Minor
>              Labels: lhf
>             Fix For: 3.x
>
>         Attachments: 9875-trunk.txt
>
>
> Nodetool rebuild command will rebuild all the token ranges handled by the 
> endpoint. Sometimes we want to rebuild only a certain token range. We should 
> add this ability to rebuild command. We should also add the ability to stream 
> from a given replica.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to