Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9940

Config API throws Index Not Mutable when creating a RequestHandler on a Classic Schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 6.2
    • None
    • config-api
    • None
    • linux

    Description

      All of our schema are Classic, we do no use mutable schemas.
      We use the Config API to create /cdcr request handlers

      {
        "add-requesthandler":{
          "name":"/cdcr",
          "class":"solr.CdcrRequestHandler",
          "replica": [{
          	"zkHost":"stldeepx20.sial.com:2181/solr",
          	"source":"sial-catalog-material",
          	"target":"sial-catalog-material"
          }, {
          	"zkHost":"stldeepx06.sial.com:2181/solr",
          	"source":"sial-catalog-material",
          	"target":"sial-catalog-material"
          }],
          "replicator": {
            "threadPoolSize":2,
            "schedule": 1000,
            "batchSize": 128
          },
          "updateLogSynchronizer" : {
            "schedule": 60000
          }
        }
      }
      

      The actual handler is generated by by an endpoint.
      The handler is created, and is functional, but the following errors are present in the log:

      2017-01-06 21:34:12.377 ERROR (SolrConfigHandler-refreshconf) [c:test-catalog-product s:shard1 r:core_node1 x:test-catalog-product_s
      hard1_replica1] o.a.s.s.IndexSchema This IndexSchema is not mutable.
      2017-01-06 21:34:12.377 WARN  (SolrConfigHandler-refreshconf) [c:test-catalog-product s:shard1 r:core_node1 x:test-catalog-product_s
      hard1_replica1] o.a.s.c.SolrCore 
      org.apache.solr.common.SolrException: This IndexSchema is not mutable.
              at org.apache.solr.schema.IndexSchema.getSchemaUpdateLock(IndexSchema.java:1864)
              at org.apache.solr.schema.SchemaManager.getFreshManagedSchema(SchemaManager.java:434)
              at org.apache.solr.core.SolrCore.lambda$getConfListener$6(SolrCore.java:2571)
              at org.apache.solr.core.SolrCore$$Lambda$91/766533008.run(Unknown Source)
              at org.apache.solr.handler.SolrConfigHandler$Command.lambda$handleGET$0(SolrConfigHandler.java:216)
              at org.apache.solr.handler.SolrConfigHandler$Command$$Lambda$143/2029435585.run(Unknown Source)
              at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            WebHomer Webster Homer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: