You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Mike Drob (Jira)" <ji...@apache.org> on 2020/04/17 16:52:00 UTC
[jira] [Commented] (SOLR-14412) NPE in MetricsHistoryHandler when
running single node in cloud mode with SSL
[ https://issues.apache.org/jira/browse/SOLR-14412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17085932#comment-17085932 ]
Mike Drob commented on SOLR-14412:
----------------------------------
So there's two issues here - the NPE is because we don't check that we actually got a result after retrying a few times. That's easy enough to fix.
The actual connection failure is because I didn't set the urlScheme cluster prop in zookeeper to https, I launched this using {{bin/solr -c}} and there was no opportunity to do so on the embedded ZK.
> NPE in MetricsHistoryHandler when running single node in cloud mode with SSL
> ----------------------------------------------------------------------------
>
> Key: SOLR-14412
> URL: https://issues.apache.org/jira/browse/SOLR-14412
> Project: Solr
> Issue Type: Task
> Security Level: Public(Default Security Level. Issues are Public)
> Components: metrics
> Affects Versions: master (9.0)
> Environment: 9.0.0-SNAPSHOT, SSL enabled (self-signed certificate), cloud mode.
> Reporter: Mike Drob
> Priority: Major
>
> {noformat}
> 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) [?:?] {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org