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

PlacementPlugin throws NPE for PRS collections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.1
    • None
    • None

    Description

      This appears to only happen with PRS, here's a sample stack trace from https://jenkins.thetaphi.de/view/Solr/job/Solr-main-Linux/6565/testReport/junit/org.apache.solr.common.cloud/PerReplicaStatesIntegrationTest/testMultipleTransitions/

      PerReplicaStatesIntegrationTest.testMultipleTransitions

      20833 ERROR (DistributedCollectionApiCommandExecutor-311-thread-1-processing-127.0.0.1:36939_solr) [n:127.0.0.1:36939_solr c:prs_modify_op_coll] o.a.s.c.a.c.DistributedCollectionConfigSetCommandRunner Collection prs_modify_op_coll, operation CREATE failed
                => org.apache.solr.common.SolrException
      	at org.apache.solr.cloud.api.collections.CreateCollectionCmd.call(CreateCollectionCmd.java:488)
      org.apache.solr.common.SolrException: null
      	at org.apache.solr.cloud.api.collections.CreateCollectionCmd.call(CreateCollectionCmd.java:488) ~[solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.cloud.api.collections.DistributedCollectionConfigSetCommandRunner$CollectionCommandRunner.call(DistributedCollectionConfigSetCommandRunner.java:431) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.cloud.api.collections.DistributedCollectionConfigSetCommandRunner$CollectionCommandRunner.call(DistributedCollectionConfigSetCommandRunner.java:364) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
      	at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:259) [main/:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
      	at java.lang.Thread.run(Thread.java:833) [?:?]
      Caused by: java.lang.NullPointerException: Cannot invoke "org.apache.solr.cluster.SolrCollection.getName()" because the return value of "org.apache.solr.cluster.placement.PlacementRequest.getCollection()" is null
      	at org.apache.solr.cluster.placement.plugins.SimplePlacementFactory$SimplePlacementPlugin.lambda$computePlacements$1(SimplePlacementFactory.java:88) ~[solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at java.util.Comparator.lambda$comparingInt$7b0bb60$1(Comparator.java:494) ~[?:?]
      	at java.util.Comparator.lambda$thenComparing$36697e65$1(Comparator.java:220) ~[?:?]
      	at java.util.TimSort.countRunAndMakeAscending(TimSort.java:355) ~[?:?]
      	at java.util.TimSort.sort(TimSort.java:220) ~[?:?]
      	at java.util.Arrays.sort(Arrays.java:1307) ~[?:?]
      	at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:353) ~[?:?]
      	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) ~[?:?]
      	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
      	at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) ~[?:?]
      	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
      	at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) ~[?:?]
      	at org.apache.solr.cluster.placement.plugins.SimplePlacementFactory$SimplePlacementPlugin.computePlacements(SimplePlacementFactory.java:91) ~[solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.cluster.placement.impl.PlacementPluginAssignStrategy.assign(PlacementPluginAssignStrategy.java:64) ~[solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.cloud.api.collections.Assign$AssignStrategy.assign(Assign.java:431) ~[solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.cloud.api.collections.CreateCollectionCmd.buildReplicaPositions(CreateCollectionCmd.java:547) ~[solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.cloud.api.collections.CreateCollectionCmd.call(CreateCollectionCmd.java:238) ~[solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	... 7 more
      20835 INFO  (qtp342394720-605) [n:127.0.0.1:36939_solr] o.a.s.s.HttpSolrCall [admin] webapp=null path=/admin/collections params={collection.configName=conf&name=prs_modify_op_coll&nrtReplicas=1&action=CREATE&numShards=3&perReplicaState=true&wt=javabin&version=2} status=500 QTime=24
      20836 ERROR (qtp342394720-605) [n:127.0.0.1:36939_solr] o.a.s.s.HttpSolrCall org.apache.solr.common.SolrException
                => org.apache.solr.common.SolrException
      	at org.apache.solr.client.solrj.SolrResponse.getException(SolrResponse.java:61)
      org.apache.solr.common.SolrException: null
      	at org.apache.solr.client.solrj.SolrResponse.getException(SolrResponse.java:61) ~[main/:?]
      	at org.apache.solr.handler.admin.CollectionsHandler.invokeAction(CollectionsHandler.java:345) ~[solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.handler.admin.CollectionsHandler.handleRequestBody(CollectionsHandler.java:294) ~[solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:207) ~[solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.servlet.HttpSolrCall.handleAdmin(HttpSolrCall.java:935) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.servlet.HttpSolrCall.handleAdminRequest(HttpSolrCall.java:887) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:578) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:239) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:207) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:257) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:227) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:202) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:184) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.apache.solr.client.solrj.embedded.JettySolrRunner$DebugFilter.doFilter(JettySolrRunner.java:187) [solr-core-10.0.0-SNAPSHOT.jar:10.0.0-SNAPSHOT 1e72ab1ab6cd40dbdba009fe1a2a4239b6b9df09 [snapshot build, details omitted]]
      	at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:193) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1601) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:548) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) [jetty-servlet-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:322) [jetty-rewrite-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:763) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.Server.handle(Server.java:516) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) [jetty-server-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.io.ssl.SslConnection$DecryptedEndPoint.onFillable(SslConnection.java:555) [jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:410) [jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.io.ssl.SslConnection$2.succeeded(SslConnection.java:164) [jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) [jetty-io-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) [jetty-util-9.4.44.v20210927.jar:9.4.44.v20210927]
      	at java.lang.Thread.run(Thread.java:833) [?:?]
      

      Attachments

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              mdrob Mike Drob
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 10m
                  10m