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

Exception when starting a node with index replication

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 8.8.2
    • None
    • replication (java)
    • None

    Description

      We are upgrading from solr 7.4 to 8.8.2 and are using leader/follower replication, SolrCloud or distributed search is not being used.

      When starting a follower node, there seem to be a whitelist check in IndexFetcher done for the configured shards, even though there is no sharding configured. The check throws the following exception: Invalid URL syntax in "shards" parameter: null

      A possible workaround for us was to pass -Dsolr.disable.shardsWhitelist=true to solr, which will disable the whitelist check entirely. However, this is missing in the index replication documentation.

      This is the exception being thrown:

      ERROR o.a.s.s.HttpSolrCall org.apache.solr.core.SolrCoreInitializationException: SolrCore 'areadata' is not available due to init failure: Invalid URL syntax in 'leaderUrl' with value ‘…’
      	at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1954)
      	at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:1927)
      	at org.apache.solr.servlet.HttpSolrCall.init(HttpSolrCall.java:257)
      	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:525)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:427)
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:357)
      	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201)
      	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1612)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1582)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234)
      	at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:177)
      	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
      	at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
      	at org.eclipse.jetty.server.Server.handle(Server.java:516)
      	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
      	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
      	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
      	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
      	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
      	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:773)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:905)
      	at java.base/java.lang.Thread.run(Unknown Source)
      Caused by: org.apache.solr.common.SolrException: Invalid URL syntax in 'leaderUrl' with value ‘…’
      	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:1087)
      	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:922)
      	at org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:1438)
      	at org.apache.solr.core.CoreContainer.lambda$load$11(CoreContainer.java:853)
      	at com.codahale.metrics.InstrumentedExecutorService$InstrumentedCallable.call(InstrumentedExecutorService.java:202)
      	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      	at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:218)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	... 1 more
      Caused by: org.apache.solr.common.SolrException: Invalid URL syntax in 'leaderUrl' with value 'http://search-leader/solr/areadata'
      	at org.apache.solr.handler.IndexFetcher.setLeaderUrl(IndexFetcher.java:291)
      	at org.apache.solr.handler.IndexFetcher.<init>(IndexFetcher.java:254)
      	at org.apache.solr.handler.ReplicationHandler.inform(ReplicationHandler.java:1286)
      	at org.apache.solr.core.SolrResourceLoader.inform(SolrResourceLoader.java:730)
      	at org.apache.solr.core.SolrCore.<init>(SolrCore.java:1038)
      	... 9 more
      Caused by: org.apache.solr.common.SolrException: Invalid URL syntax in "shards" parameter: null
      	at org.apache.solr.handler.component.HttpShardHandlerFactory$WhitelistHostChecker.lambda$checkWhitelist$1(HttpShardHandlerFactory.java:540)
      	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
      	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
      	at java.base/java.util.Collections$2.tryAdvance(Unknown Source)
      	at java.base/java.util.Collections$2.forEachRemaining(Unknown Source)
      	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
      	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
      	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source)
      	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source)
      	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
      	at java.base/java.util.stream.ReferencePipeline.forEach(Unknown Source)
      	at org.apache.solr.handler.component.HttpShardHandlerFactory$WhitelistHostChecker.checkWhitelist(HttpShardHandlerFactory.java:527)
      	at org.apache.solr.handler.IndexFetcher.setLeaderUrl(IndexFetcher.java:286)
      	... 13 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            cholpas@gmail.com Pascal Chollet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: