[
https://issues.apache.org/jira/browse/SOLR-18337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18102477#comment-18102477
]
Mikael Sterner commented on SOLR-18337:
---------------------------------------
[~epugh] I thought maybe the implementers of SIP-21 would be more suitable to
fix this, knowing the full picture of how the original changes were done. But I
created a draft PR [https://github.com/apache/solr/pull/4715] in case it helps
to fix this particular issue.
> Setting SOLR_HOST_ADVERTISE to start tool gives deprecation warning
> -------------------------------------------------------------------
>
> Key: SOLR-18337
> URL: https://issues.apache.org/jira/browse/SOLR-18337
> Project: Solr
> Issue Type: Bug
> Components: cli
> Environment: Windows
> Reporter: Mikael Sterner
> Priority: Major
>
> If you set the {{SOLR_HOST_ADVERTISE}} environment variable before calling
> {{solr.cmd start}}, deprecation warnings are printed:
> {noformat}
> set SOLR_HOST_ADVERTISE=myhost.example.com
> solr-10.0.0-slim\bin\solr.cmd start --user-managed
> WARN - 2026-08-05 12:31:59.187; org.apache.solr.common.util.EnvUtils; You
> are passing in deprecated system property host and should upgrade to using
> solr.host.advertise instead. The deprecated property support will be removed
> in future version of Solr.
> {noformat}
>
> Expected would be no deprecation warning, as this is the correct environment
> variable from {{solr.in.cmd}}.
> This looks like an omission in SOLR-15442 that it didn't update
> {{SOLR_HOST=host}} in {{EnvToSyspropMappings.properties}} when adding
> {{host}} to {{DeprecatedSystemPropertyMappings.properties}}, or possibly a
> midflight collision with SOLR-17864 if the latter should have fixed this when
> swapping out {{SOLR_HOST}} for {{SOLR_HOST_ADVERTISE}} in
> {{EnvToSyspropMappings.properties}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]