You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Eric Pugh (Jira)" <ji...@apache.org> on 2024/10/05 11:41:00 UTC
[jira] [Resolved] (SOLR-17469) CLI: Resolve -f flag conflicts
[ https://issues.apache.org/jira/browse/SOLR-17469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Pugh resolved SOLR-17469.
------------------------------
Fix Version/s: 9.8
Resolution: Fixed
Fixed, with the caveat did not touch the bin/install_solr_service.sh script.
> CLI: Resolve -f flag conflicts
> ------------------------------
>
> Key: SOLR-17469
> URL: https://issues.apache.org/jira/browse/SOLR-17469
> Project: Solr
> Issue Type: Sub-task
> Components: cli
> Affects Versions: 9.7, 9x
> Reporter: Christos Malliaridis
> Assignee: Eric Pugh
> Priority: Major
> Labels: cli, migration
> Fix For: 9.8
>
>
> h4. Description
> The -f flag is used in multiple options, including:
> * foreground in bin/solr and bin/solr.cmd, which runs Solr in the foreground
> * format in PostTool to send application/json content as Solr commands to /update instead of /update/json/docs
> * format in ExportTool to set the output format for exported docs
> * force in bin/solr and RunExampleTool to allow starting Solr as root user
> * config file in SolrExporter to specify the configuration file
> * force delete in DeleteTool to skip safety checks when deleting the configuration directory used by a collection
> * upgrade solr in install_solr_service.sh to overwrite symlink and init script of previous installation
> To avoid confusion, we should deprecate (9.8) and remove (10.0) the -f flag from options that do not explicitly need it.
> h4. Proposed Conflict Resolution
> Keep -f for forcing actions since it is often used in other tools for "force" as well. This means keep -f for force in bin/solr and RunExampleTool to allow starting Solr as root user and also for force deleting configuration directories in DeleteTool.
> Deprecate (9x and 9.7.1) and remove (10.0) by replacing the "force-delete-config" (--force-delete-config, -forceDeleteConfig, --forceDeleteConfig, -f) in DeleteTool with the "force" option ( --force, -f).
> Deprecate (9x and 9.7.1) and remove (10.0) -f from the "format" option in PostTool.
> Deprecate (9x and 9.7.1) and remove (10.0) -f from the "config file" option (-f, --config-file, -config-file) in SolrExporter.
> Deprecate (9x and 9.7.1) and remove (10.0) -f from "upgrade solr" in install_solr_service.sh by replacing it with "–upgrade".
> h4. More Information
> Please look into [Solr Arguments - Migration Overview|[https://docs.google.com/spreadsheets/d/1ws44kN51WnGwQzOXc8KKRQ93TMgHSqIGb02MRWFel_U]] for a better overview and additional information.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org