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.
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) ~[?:?]
Attachments
Issue Links
- links to