Skip to content

SOLR-17318 VersionTool now reports remote server version#4275

Open
janhoy wants to merge 1 commit intoapache:mainfrom
janhoy:SOLR-17318-version-server-info
Open

SOLR-17318 VersionTool now reports remote server version#4275
janhoy wants to merge 1 commit intoapache:mainfrom
janhoy:SOLR-17318-version-server-info

Conversation

@janhoy
Copy link
Copy Markdown
Contributor

@janhoy janhoy commented Apr 9, 2026

...when --solr-url is provided

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

@janhoy
Copy link
Copy Markdown
Contributor Author

janhoy commented Apr 9, 2026

PS: picocli support will be added later in the picocli branch after rebasing...

Copy link
Copy Markdown
Contributor

@epugh epugh left a comment

Choose a reason for hiding this comment

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

Nice to get this jira knocked out!

@Override
public Options getOptions() {
return super.getOptions()
.addOption(CommonCLIOptions.SOLR_URL_OPTION)
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 need to support the --zk option to connect for consistency? Don't all our tools allow both??

tool.runTool(SolrCLI.processCommandLineArgs(tool, toolArgs));

String output = runtime.getOutput();
assertTrue("Output should contain 'Client version:'", output.contains("Client version:"));
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.

In other code I saw a nicer assert style for contains in a setting🤔, though I can't remember right now what it was!!

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