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

Shalin Shekhar Mangar updated SOLR-5308:
----------------------------------------

    Attachment: SOLR-5308.patch

This patch implements the MIGRATE Collection API
# Identifies the source and target shards for the given split.key. The for each 
pair of (source,target)
## Calculates common hash range by intersecting hash range of source shard, 
target shard and split.key's hash range
## Creates a temporary collection with just one replica on the source shard 
leader node
## Splits the source shard using the common hash range and split.key into the 
temporary collection
## Creates a replica of the temporary collection on the target shard leader's 
node
## Waits for it to become active
## Merges the replica's index into the target shard leader's index

This is a rough cut to show where we're going with this. There are plenty of 
nocommits and todos. I still need to figure out how the request forwarding 
should work and if/how we can make the replica recovery asynchronous as we did 
for the split shard API.

> Split all documents of a route key into another collection
> ----------------------------------------------------------
>
>                 Key: SOLR-5308
>                 URL: https://issues.apache.org/jira/browse/SOLR-5308
>             Project: Solr
>          Issue Type: New Feature
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 4.6, 5.0
>
>         Attachments: SOLR-5308.patch
>
>
> Enable SolrCloud users to split out a set of documents from a source 
> collection into another collection.
> This will be useful in multi-tenant environments. This feature will make it 
> possible to split a tenant out of a collection and put them into their own 
> collection which can be scaled separately.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to