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

ElectionContext#runLeaderProcess can hit NPE on core close.

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 6.5, 7.0
    • None
    • None

    Description

         [junit4]   2> 191445 INFO  (zkCallback-7-thread-7-processing-n:127.0.0.1:45055_) [n:127.0.0.1:45055_ c:solrj_collection2 s:shard2 r:core_node3 x:solrj_collection2_shard2_replica1] o.a.s.m.SolrMetricManager Closing metric reporters for: solr.core.solrj_collection2.shard2.replica1
         [junit4]   2> 191445 INFO  (zkCallback-7-thread-7-processing-n:127.0.0.1:45055_) [n:127.0.0.1:45055_ c:solrj_collection2 s:shard2 r:core_node3 x:solrj_collection2_shard2_replica1] o.a.s.s.h.HdfsDirectory Closing hdfs directory hdfs://localhost:34043/solr_hdfs_home/solrj_collection2/core_node3/data
         [junit4]   2> 191476 INFO  (zkCallback-7-thread-7-processing-n:127.0.0.1:45055_) [n:127.0.0.1:45055_ c:solrj_collection2 s:shard2 r:core_node3 x:solrj_collection2_shard2_replica1] o.a.s.s.h.HdfsDirectory Closing hdfs directory hdfs://localhost:34043/solr_hdfs_home/solrj_collection2/core_node3/data/index
         [junit4]   2> 191484 INFO  (zkCallback-7-thread-7-processing-n:127.0.0.1:45055_) [n:127.0.0.1:45055_ c:solrj_collection2 s:shard2 r:core_node3 x:solrj_collection2_shard2_replica1] o.a.s.s.h.HdfsDirectory Closing hdfs directory hdfs://localhost:34043/solr_hdfs_home/solrj_collection2/core_node3/data/snapshot_metadata
         [junit4]   2> 191523 INFO  (coreCloseExecutor-172-thread-6) [n:127.0.0.1:45055_ c:solrj_collection4 s:shard5 r:core_node4 x:solrj_collection4_shard5_replica1] o.a.s.m.SolrMetricManager Closing metric reporters for: solr.core.solrj_collection4.shard5.replica1
         [junit4]   2> 191530 INFO  (zkCallback-7-thread-9-processing-n:127.0.0.1:45055_) [n:127.0.0.1:45055_    ] o.a.s.c.c.ZkStateReader A cluster state change: [WatchedEvent state:SyncConnected type:NodeDataChanged path:/collections/solrj_collection2/state.json] for collection [solrj_collection2] has occurred - updating... (live nodes size: [1])
         [junit4]   2> 191554 INFO  (coreCloseExecutor-172-thread-6) [n:127.0.0.1:45055_ c:solrj_collection4 s:shard5 r:core_node4 x:solrj_collection4_shard5_replica1] o.a.s.s.h.HdfsDirectory Closing hdfs directory hdfs://localhost:34043/solr_hdfs_home/solrj_collection4/core_node4/data/index
         [junit4]   2> 191555 ERROR (zkCallback-7-thread-7-processing-n:127.0.0.1:45055_) [n:127.0.0.1:45055_ c:solrj_collection2 s:shard2 r:core_node3 x:solrj_collection2_shard2_replica1] o.a.s.c.ShardLeaderElectionContext There was a problem trying to register as the leader:java.lang.NullPointerException
         [junit4]   2> 	at org.apache.solr.cloud.ShardLeaderElectionContext.runLeaderProcess(ElectionContext.java:426)
         [junit4]   2> 	at org.apache.solr.cloud.LeaderElector.runIamLeaderProcess(LeaderElector.java:170)
         [junit4]   2> 	at org.apache.solr.cloud.LeaderElector.checkIfIamLeader(LeaderElector.java:135)
         [junit4]   2> 	at org.apache.solr.cloud.LeaderElector.access$200(LeaderElector.java:56)
         [junit4]   2> 	at org.apache.solr.cloud.LeaderElector$ElectionWatcher.process(LeaderElector.java:348)
         [junit4]   2> 	at org.apache.solr.common.cloud.SolrZkClient$3.lambda$process$0(SolrZkClient.java:268)
         [junit4]   2> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
         [junit4]   2> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
         [junit4]   2> 	at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)
         [junit4]   2> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
         [junit4]   2> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
         [junit4]   2> 	at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            markrmiller@gmail.com Mark Miller
            markrmiller@gmail.com Mark Miller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment