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

NPE in MetricsHistoryHandler when running single node in cloud mode with SSL

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.0
    • 9.0
    • metrics
    • None
    • 9.0.0-SNAPSHOT, SSL enabled (self-signed certificate), cloud mode.

    Description

      2020-04-17 15:35:19.335 INFO  (MetricsHistoryHandler-22-thread-1) [   ] o.a.s.c.s.i.SolrClientNodeStateProvider Error on getting remote info, trying again: IOException occurred when talking to server at: http://localhost:8983/solr
      2020-04-17 15:35:19.842 INFO  (MetricsHistoryHandler-22-thread-1) [   ] o.a.s.c.s.i.SolrClientNodeStateProvider Error on getting remote info, trying again: IOException occurred when talking to server at: http://localhost:8983/solr
      2020-04-17 15:35:20.346 INFO  (MetricsHistoryHandler-22-thread-1) [   ] o.a.s.c.s.i.SolrClientNodeStateProvider Error on getting remote info, trying again: IOException occurred when talking to server at: http://localhost:8983/solr
      2020-04-17 15:35:20.851 WARN  (MetricsHistoryHandler-22-thread-1) [   ] o.a.s.c.s.i.SolrClientNodeStateProvider could not get tags from node localhost:8983_solr => java.lang.NullPointerException
              at org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider.lambda$fetchReplicaMetrics$7(SolrClientNodeStateProvider.java:226)
      java.lang.NullPointerException: null
              at org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider.lambda$fetchReplicaMetrics$7(SolrClientNodeStateProvider.java:226) ~[solr-solrj-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT 74ecc13816fb6aae6e512e2e9d815459e235a120 - mdrob - 2020-04-17 10:28:44]
              at java.util.HashMap.forEach(HashMap.java:1336) ~[?:?]
              at org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider.fetchReplicaMetrics(SolrClientNodeStateProvider.java:225) ~[solr-solrj-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT 74ecc13816fb6aae6e512e2e9d815459e235a120 - mdrob - 2020-04-17 10:28:44]
              at org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider$AutoScalingSnitch.getRemoteInfo(SolrClientNodeStateProvider.java:271) ~[solr-solrj-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT 74ecc13816fb6aae6e512e2e9d815459e235a120 - mdrob - 2020-04-17 10:28:44]
              at org.apache.solr.common.cloud.rule.ImplicitSnitch.getTags(ImplicitSnitch.java:75) ~[solr-solrj-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT 74ecc13816fb6aae6e512e2e9d815459e235a120 - mdrob - 2020-04-17 10:28:44]
              at org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider.fetchTagValues(SolrClientNodeStateProvider.java:139) ~[solr-solrj-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT 74ecc13816fb6aae6e512e2e9d815459e235a120 - mdrob - 2020-04-17 10:28:44]
              at org.apache.solr.client.solrj.impl.SolrClientNodeStateProvider.getNodeValues(SolrClientNodeStateProvider.java:128) ~[solr-solrj-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT 74ecc13816fb6aae6e512e2e9d815459e235a120 - mdrob - 2020-04-17 10:28:44]
              at org.apache.solr.handler.admin.MetricsHistoryHandler.collectGlobalMetrics(MetricsHistoryHandler.java:506) ~[solr-core-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT 74ecc13816fb6aae6e512e2e9d815459e235a120 - mdrob - 2020-04-17 10:28:44]
              at org.apache.solr.handler.admin.MetricsHistoryHandler.collectMetrics(MetricsHistoryHandler.java:378) ~[solr-core-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT 74ecc13816fb6aae6e512e2e9d815459e235a120 - mdrob - 2020-04-17 10:28:44]
              at org.apache.solr.handler.admin.MetricsHistoryHandler.lambda$new$0(MetricsHistoryHandler.java:235) ~[solr-core-9.0.0-SNAPSHOT.jar:9.0.0-SNAPSHOT 74ecc13816fb6aae6e512e2e9d815459e235a120 - mdrob - 2020-04-17 10:28:44]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
              at java.lang.Thread.run(Thread.java:834) [?:?] 

      Attachments

        Issue Links

          Activity

            People

              mdrob Mike Drob
              mdrob Mike Drob
              Votes:
              0 Vote for this issue
              Watchers:
              3 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