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

Schema Designer publish shouldn't fail if .system collection doesn't exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.10, 8.11, 8.10.1
    • 9.0, 8.11.1
    • Schema Designer
    • None

    Description

      While testing Schema Designer against the cloud example, I encountered this error while re-publishing the gettingstarted configset (without indexing any sample docs):

      2021-12-03 17:20:13.663 ERROR (qtp29183965-99) [   ] o.a.s.a.AnnotatedApi Error executing command   => org.apache.solr.common.SolrException: Collection not found: .system
      	at org.apache.solr.client.solrj.impl.BaseCloudSolrClient.requestWithRetryOnStaleState(BaseCloudSolrClient.java:901)
      org.apache.solr.common.SolrException: Collection not found: .system
      	at org.apache.solr.client.solrj.impl.BaseCloudSolrClient.requestWithRetryOnStaleState(BaseCloudSolrClient.java:901) ~[?:?]
      	at org.apache.solr.client.solrj.impl.BaseCloudSolrClient.request(BaseCloudSolrClient.java:866) ~[?:?]
      	at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214) ~[?:?]
      	at org.apache.solr.client.solrj.SolrClient.deleteByQuery(SolrClient.java:940) ~[?:?]
      	at org.apache.solr.handler.designer.SchemaDesignerConfigSetHelper.deleteStoredSampleDocs(SchemaDesignerConfigSetHelper.java:466) ~[?:?]
      	at org.apache.solr.handler.designer.SchemaDesignerAPI.cleanupTemp(SchemaDesignerAPI.java:1171) ~[?:?]
      	at org.apache.solr.handler.designer.SchemaDesignerAPI.publish(SchemaDesignerAPI.java:517) ~[?:?]
      	at org.apache.solr.api.AnnotatedApi$Cmd.invoke(AnnotatedApi.java:299) ~[?:?]
      	at org.apache.solr.api.AnnotatedApi.call(AnnotatedApi.java:175) ~[?:?]
      	at org.apache.solr.api.V2HttpCall.handleAdmin(V2HttpCall.java:340) ~[?:?]
      	at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:800) ~[?:?]
      	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:545) ~[?:?]
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427) ~[?:?]
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:357) ~[?:?]
      

      The publish operation should not fail due to problems cleaning up ...

      Attachments

        Activity

          People

            thelabdude Timothy Potter
            thelabdude Timothy Potter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m