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

ElectionContext#runLeaderProcess can hit NPE on core close.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.5, 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      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)
      

        Issue Links

          Activity

          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 04ba9968c0686a5fa1a9c5d89a7cd92839902f32 in lucene-solr's branch refs/heads/master from markrmiller
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=04ba996 ]

          SOLR-10196: ElectionContext#runLeaderProcess can hit NPE on core close.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 04ba9968c0686a5fa1a9c5d89a7cd92839902f32 in lucene-solr's branch refs/heads/master from markrmiller [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=04ba996 ] SOLR-10196 : ElectionContext#runLeaderProcess can hit NPE on core close.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 203147896c275ba286ba667950c280037a34a0d0 in lucene-solr's branch refs/heads/branch_6x from markrmiller
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2031478 ]

          SOLR-10196: ElectionContext#runLeaderProcess can hit NPE on core close.

          Show
          jira-bot ASF subversion and git services added a comment - Commit 203147896c275ba286ba667950c280037a34a0d0 in lucene-solr's branch refs/heads/branch_6x from markrmiller [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=2031478 ] SOLR-10196 : ElectionContext#runLeaderProcess can hit NPE on core close.

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development