[ https://issues.apache.org/jira/browse/SOLR-16997?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Høydahl updated SOLR-16997: ------------------------------- Description: 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} was: 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 there is a NotNull check somewhere. 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} > 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 > Time Spent: 10m > 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