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

DebugComponent throws NPE on shard exceptions when using shards.tolerant

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.8
    • 4.9, 6.0
    • None
    • None

    Description

      For example on a search with debug=true

      oasc.SolrException.log ERROR null:java.lang.NullPointerException
      		at org.apache.solr.handler.component.DebugComponent.getTrackResponse(DebugComponent.java:262)
      		at org.apache.solr.handler.component.DebugComponent.handleResponses(DebugComponent.java:190)
      		at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:327)
      		at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
      		at org.apache.solr.core.SolrCore.execute(SolrCore.java:1980)
      		at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:776)
      		at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:420)
      		at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)
      		at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
      		at org.apache.solr.client.solrj.embedded.JettySolrRunner$DebugFilter.doFilter(JettySolrRunner.java:136)
      		at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
      		at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
      		at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
      		at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      		at org.eclipse.jetty.server.handler.GzipHandler.handle(GzipHandler.java:301)
      		at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1077)
      		at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
      		at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      		at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
      		at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      		at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      		at org.eclipse.jetty.server.Server.handle(Server.java:368)
      		at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
      		at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
      		at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
      		at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
      		at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      		at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      		at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
      		at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      		at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      		at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      at java.lang.Thread.run(Thread.java:744)
      
      
      
      

      or, if using something like debug=timing

      oasc.SolrException.log ERROR null:java.lang.NullPointerException
      		at org.apache.solr.handler.component.DebugComponent.finishStage(DebugComponent.java:209)
      		at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:333)
      		at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
      		at org.apache.solr.core.SolrCore.execute(SolrCore.java:1980)
      		at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:776)
      		at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:420)
      		at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:208)
      		at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
      		at org.apache.solr.client.solrj.embedded.JettySolrRunner$DebugFilter.doFilter(JettySolrRunner.java:136)
      		at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
      		at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
      		at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229)
      		at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
      		at org.eclipse.jetty.server.handler.GzipHandler.handle(GzipHandler.java:301)
      		at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1077)
      		at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
      		at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
      		at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
      		at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
      		at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
      		at org.eclipse.jetty.server.Server.handle(Server.java:368)
      		at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
      		at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
      		at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
      		at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
      		at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
      		at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
      		at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
      		at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
      		at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
      		at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
      		at java.lang.Thread.run(Thread.java:744)
      	
      

      Attachments

        1. SOLR-6175.patch
          5 kB
          Tomas Eduardo Fernandez Lobbe

        Activity

          People

            shalin Shalin Shekhar Mangar
            tflobbe Tomas Eduardo Fernandez Lobbe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: