Skip to content

SOLR-18269: Restore -c as a no-op function for bin/solr start#4473

Open
epugh wants to merge 3 commits into
apache:mainfrom
epugh:SOLR-18269
Open

SOLR-18269: Restore -c as a no-op function for bin/solr start#4473
epugh wants to merge 3 commits into
apache:mainfrom
epugh:SOLR-18269

Conversation

@epugh
Copy link
Copy Markdown
Contributor

@epugh epugh commented May 28, 2026

https://issues.apache.org/jira/browse/SOLR-18269

Description

Restore -c as no-op function to bin/solr start.

Solution

Burps out a mention. I used claude. Added a bats test.

Tests

bats.

Copy link
Copy Markdown
Contributor

@janhoy janhoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I think it is unnecessary to print the -c flag in the --help docs, as it won't help a single soul 🤣

Comment thread solr/bin/solr Outdated
echo ""
echo " -c or --cloud No-op. Solr starts in cloud mode by default; this flag is accepted for"
echo " compatibility with previous Solr scripts. Cannot be combined with --user-managed."
echo ""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we even need to mention the flag if it's noop? We could leave it an expert stealth option?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

humm... yeah, i went back and forth on it... was thinking that having this magic variable not be documented is worse? but I can see not having the it documented but still giving the warning. and the help is getting so long!

@janhoy
Copy link
Copy Markdown
Contributor

janhoy commented May 29, 2026

Add a changelog?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants