lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anshum Gupta (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-6073) CollectionAdminRequest has createCollection methods with hard-coded router="implicit"
Date Mon, 01 Sep 2014 20:33:20 GMT

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

Anshum Gupta updated SOLR-6073:
-------------------------------
    Attachment: SOLR-6073.patch
                SOLR-6073-4x.patch

Moving the patch from the parent issue to here.
Patches for trunk and 4x that do the following:
* Deprecate the current createCollection(tons and tons of arguments), splitShard and all other
such collections in branch_4x.
* Remove all of the above mentioned methods in trunk.

{code:title=New usage|borderStyle=solid}
// New usage for Create collection
Create createCollectionRequest = new Create();
createCollectionRequest.setCollectionName(collectionName);
.
.
CollectionAdminResponse response = createCollectionRequest.process(server);

// New usage for splitShard
SplitShard splitShardRequest = new SplitShard();
splitShardRequest.setCollectionName(collectionName);
splitShardRequest.setShardName(shardName);
response = splitShardRequest.process(server);

// New usage for REQUESTSTATUS
RequestStatus request = new RequestStatus();
request.setRequestId(requestId);
response = request.process(server);
{code}


> CollectionAdminRequest has createCollection methods with hard-coded router="implicit"
> -------------------------------------------------------------------------------------
>
>                 Key: SOLR-6073
>                 URL: https://issues.apache.org/jira/browse/SOLR-6073
>             Project: Solr
>          Issue Type: Bug
>          Components: clients - java, SolrCloud
>    Affects Versions: 4.8
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Anshum Gupta
>             Fix For: 4.9, 5.0
>
>         Attachments: SOLR-6073-4x.patch, SOLR-6073.patch
>
>
> The CollectionAdminRequest has a createCollection() method which has the following hard-coded:
> {code}
> req.setRouterName("implicit");
> {code}
> This is a bug and we should remove it.



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

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


Mime
View raw message