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

BlendedInfixSuggester doesn't support Solr core reload

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 5.2.1
    • Fix Version/s: None
    • Component/s: Suggester
    • Labels:
      None

      Description

      Using BlendedInfixSuggester (and I'm guessing some others) prevents a SolrCore from reloading properly. Here's the exception when I issue the reload:

      ERROR - 2015-07-02 04:23:45.763; [   products_shard1_replica1] org.apache.solr.common.SolrException; null:org.apache.solr.common.SolrException: Error handling 'reload' action
      	at org.apache.solr.handler.admin.CoreAdminHandler.handleReloadAction(CoreAdminHandler.java:775)
      	at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:239)
      	at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:193)
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:143)
      	at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:660)
      	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:431)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:227)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:196)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
      	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
      	at org.eclipse.jetty.server.Server.handle(Server.java:497)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
      	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
      	at java.lang.Thread.run(Thread.java:722)
      Caused by: org.apache.solr.common.SolrException: Unable to reload core [products_shard1_replica1]
      	at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:743)
      	at org.apache.solr.handler.admin.CoreAdminHandler.handleReloadAction(CoreAdminHandler.java:773)
      	... 27 more
      Caused by: org.apache.solr.common.SolrException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/var/persistent/solr/data/products_shard1_replica1/data/suggest_brand_infix/write.lock
      	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:815)
      	at org.apache.solr.core.SolrCore.reload(SolrCore.java:455)
      	at org.apache.solr.core.CoreContainer.reload(CoreContainer.java:738)
      	... 28 more
      Caused by: java.lang.RuntimeException: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/var/persistent/solr/data/products_shard1_replica1/data/suggest_brand_infix/write.lock
      	at org.apache.solr.spelling.suggest.fst.BlendedInfixLookupFactory.create(BlendedInfixLookupFactory.java:135)
      	at org.apache.solr.spelling.suggest.SolrSuggester.init(SolrSuggester.java:106)
      	at org.apache.solr.handler.component.SuggestComponent.inform(SuggestComponent.java:119)
      	at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:619)
      	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:795)
      	... 30 more
      Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/var/persistent/solr/data/products_shard1_replica1/data/suggest_brand_infix/write.lock
      	at org.apache.lucene.store.Lock.obtain(Lock.java:89)
      	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:780)
      	at org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester.<init>(AnalyzingInfixSuggester.java:252)
      	at org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester.<init>(AnalyzingInfixSuggester.java:217)
      	at org.apache.lucene.search.suggest.analyzing.BlendedInfixSuggester.<init>(BlendedInfixSuggester.java:155)
      	at org.apache.solr.spelling.suggest.fst.BlendedInfixLookupFactory$1.<init>(BlendedInfixLookupFactory.java:115)
      	at org.apache.solr.spelling.suggest.fst.BlendedInfixLookupFactory.create(BlendedInfixLookupFactory.java:112)
      	... 34 more
      
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dsmiley David Smiley
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: