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

Shard Tolerance in Streaming API

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 7.4
    • Fix Version/s: None
    • Component/s: streaming expressions
    • Labels:
      None

      Description

       

      While running a search using stream expression with shards.tolerant=true, I got this exception in solr.log:

      2020-01-05 08:53:18.700 ERROR (qtp773443628-26030) [c:ACCESS_1 s:zamir-vm01 r:core_node2 x:ACCESS_1_zamir-vm01] o.a.s.c.s.i.s.ExceptionStream java.io.IOException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0    at org.apache.solr.client.solrj.io.stream.CloudSolrStream.constructStreams(CloudSolrStream.java:378)    at org.apache.solr.client.solrj.io.stream.CloudSolrStream.open(CloudSolrStream.java:274)    at org.apache.solr.client.solrj.io.stream.HashJoinStream.open(HashJoinStream.java:197)    at org.apache.solr.client.solrj.io.stream.ExceptionStream.open(ExceptionStream.java:54)    at org.apache.solr.handler.StreamHandler$TimerStream.open(StreamHandler.java:397)    at org.apache.solr.client.solrj.io.stream.TupleStream.writeMap(TupleStream.java:83)    at org.apache.solr.response.JSONWriter.writeMap(JSONResponseWriter.java:539)    at org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:181)    at org.apache.solr.response.JSONWriter.writeNamedListAsMapWithDups(JSONResponseWriter.java:209)    at org.apache.solr.response.JSONWriter.writeNamedList(JSONResponseWriter.java:325)    at org.apache.solr.response.JSONWriter.writeResponse(JSONResponseWriter.java:120)    at org.apache.solr.response.JSONResponseWriter.write(JSONResponseWriter.java:71)    at org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:65)    at org.apache.solr.servlet.HttpSolrCall.writeResponse(HttpSolrCall.java:787)    at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:524)    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:377)    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:323)    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1634)    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:146)    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:257)    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)    at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:335)    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)    at org.eclipse.jetty.server.Server.handle(Server.java:531)    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:352)    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:281)    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)    at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:291)    at org.eclipse.jetty.io.ssl.SslConnection$3.succeeded(SslConnection.java:151)    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:102)    at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)    at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:760)    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:678)    at java.lang.Thread.run(Thread.java:818)Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0    at java.util.ArrayList.rangeCheck(ArrayList.java:668)    at java.util.ArrayList.get(ArrayList.java:444)    at org.apache.solr.client.solrj.io.stream.TupleStream.getShards(TupleStream.java:152)    at org.apache.solr.client.solrj.io.stream.CloudSolrStream.constructStreams(CloudSolrStream.java:363)    ... 53 more

        Attachments

        1. change.patch
          1 kB
          Zamir Paltiel

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zamirp Zamir Paltiel
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: