Webster Homer created SOLR-15297:
------------------------------------

             Summary: Creating a collection with TLOG replicas fails with 
placement rules
                 Key: SOLR-15297
                 URL: https://issues.apache.org/jira/browse/SOLR-15297
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 7.7.2
         Environment: We run on Linux VMs in the google cloud, we see this also 
with OnPrem Linux servers as well

Currently using Java 8
            Reporter: Webster Homer


When creating a collection with tlog replicas while specifying that a node can 
have only 1 replica for a collection, the call fails with the error: TLOG or 
PULL replica types not supported with placement rules or cluster policies

We have solr clouds that have 4 nodes and our collections have 2 shards. For 
fault tolerance we need to have each replica on a different solr node. but this 
is not possible when we need to use TLOG replicas.

Not TLOG collections not supporting placement rules defeats the purpose of 
using solrcloud .

This is the call we make:

[http://localhost:8983/solr/admin/collections?action=CREATE&name=b2b-catalog-material-20210320T&collection.configName=b2b-catalog-material-20210320&numShards=2&rule=replica:<2,node:*&tlogReplicas=2|http://localhost:8983/solr/admin/collections?action=CREATE&name=b2b-catalog-material-20210320T&collection.configName=b2b-catalog-material-20210320&numShards=2&rule=replica:%3c2,node:*&tlogReplicas=2]

 

This was the complete response.

{

    "responseHeader": {

        "status": 500,

        "QTime": 574

    },

    "Operation create caused exception:": 
"org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: 
TLOG or PULL replica types not supported with placement rules or cluster 
policies",

    "exception": {

        "msg": "TLOG or PULL replica types not supported with placement rules 
or cluster policies",

        "rspCode": 500

    },

    "error": {

        "metadata": [

            "error-class",

            "org.apache.solr.common.SolrException",

            "root-error-class",

            "org.apache.solr.common.SolrException"

        ],

        "msg": "TLOG or PULL replica types not supported with placement rules 
or cluster policies",

        "trace": "org.apache.solr.common.SolrException: TLOG or PULL replica 
types not supported with placement rules or cluster policies\n\tat 
org.apache.solr.client.solrj.SolrResponse.getException(SolrResponse.java:53)\n\tat
 
org.apache.solr.handler.admin.CollectionsHandler.invokeAction(CollectionsHandler.java:275)\n\tat
 
org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:247)\n\tat
 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)\n\tat
 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to