Skip to content

Commit 6185a8e

Browse files
committed
Replace "create_core" with "create" command. "create" works on 8x, 9x, and is the default choice in Solr 10x
1 parent 1a71125 commit 6185a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/solr/src/main/java/org/testcontainers/containers/SolrContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected void waitUntilContainerStarted() {
143143
@SneakyThrows
144144
protected void containerIsStarted(InspectContainerResponse containerInfo) {
145145
if (!configuration.isZookeeper()) {
146-
ExecResult result = execInContainer("solr", "create_core", "-c", configuration.getCollectionName());
146+
ExecResult result = execInContainer("solr", "create", "-c", configuration.getCollectionName());
147147
if (result.getExitCode() != 0) {
148148
throw new IllegalStateException(
149149
"Unable to create solr core:\nStdout: " + result.getStdout() + "\nStderr:" + result.getStderr()

0 commit comments

Comments
 (0)