[
https://issues.apache.org/jira/browse/SOLR-16997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17769156#comment-17769156
]
ASF subversion and git services commented on SOLR-16997:
--------------------------------------------------------
Commit adc03933add19659449f5aac0567ea7bb7c0e195 in solr's branch
refs/heads/main from Jan Høydahl
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=adc03933add ]
SOLR-16997: OTEL configurator NPE when SOLR_HOST not set (#1959)
> 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: 20m
> 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: [email protected]
For additional commands, e-mail: [email protected]