Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Default start parameters not working for Solr 9.7.0 #9601

Open
der-eismann opened this issue Dec 4, 2024 · 0 comments
Open

[Bug]: Default start parameters not working for Solr 9.7.0 #9601

der-eismann opened this issue Dec 4, 2024 · 0 comments

Comments

@der-eismann
Copy link

der-eismann commented Dec 4, 2024

Module

Solr

Testcontainers version

1.20.4

Using the latest Testcontainers version?

Yes

Host OS

Linux

Host Arch

x86

Docker version

27.3.1

What happened?

I tried to run Solr 9.7.0 via the SolrContainer integration with solr.withZookeeper(true). However this failed to start, showing only the usage output:

Starting Solr

Usage: solr start [-f] [-c] [--host host] [-p port] [-d directory] [-z zkHost] [-m memory] [-e example] [-s solr.solr.home] [-t solr.data.home] [-a "additional-options"] [-V]
…
  --host <host>         Specify the hostname for this Solr instance

Turns out that Solr changed the format of start parameters to the commonly used --: https://issues.apache.org/jira/browse/SOLR-16824

Starting with -DzkRun --host localhost instead of -DzkRun -h localhost works great, so I thought of setting solr.setCommand("-DzkRun", "--host", "localhost"); to overwrite the args defined here, however this doesn't seem to work.

Would be great if Solr 9.7.0 could be used with embedded Zookeeper within testcontainers 🙂

Relevant log output

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants