[ https://issues.apache.org/jira/browse/SOLR-16997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl resolved SOLR-16997. -------------------------------- Fix Version/s: 9.4 Resolution: Fixed > OTEL configurator NPE when SOLR_HOST not set > -------------------------------------------- > > Key: SOLR-16997 > URL: https://issues.apache.org/jira/browse/SOLR-16997 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: tracing > Reporter: Jan Høydahl > Assignee: Jan Høydahl > Priority: Major > Fix For: 9.4 > > Time Spent: 1h > Remaining Estimate: 0h > > If you start Solr 9.3 with OTEL tracing enabled, but do not set SOLR_HOST, > solr will not come up due to it trying to read sysprop "host" which is null > and {{Map.of()}} requires non-null key and value. > Simple workaround is to set SOLR_HOST but for dev environment it would be > nice to fix the bug by checking before setting the "host.name" trace-property. > {code:java} > at java.base/java.util.Objects.requireNonNull(Unknown Source) > java.lang.NullPointerException: null > at java.util.Objects.requireNonNull(Unknown Source) ~[?:?] > at java.util.ImmutableCollections$Map1.<init>(Unknown Source) ~[?:?] > at java.util.Map.of(Unknown Source) ~[?:?] > at > org.apache.solr.opentelemetry.OtelTracerConfigurator.getTracer(OtelTracerConfigurator.java:50) > ~[?:?] {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org