You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Maxim Muzafarov (Jira)" <ji...@apache.org> on 2026/06/19 20:56:00 UTC
[jira] [Updated] (CASSANDRA-20214) The short -p option for the copyData arg in the Import node tool command conflicts with the --port option
[ https://issues.apache.org/jira/browse/CASSANDRA-20214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maxim Muzafarov updated CASSANDRA-20214:
----------------------------------------
Fix Version/s: 4.0.21
4.1.12
5.0.9
6.0-alpha2
7.0
(was: 4.0.x)
(was: 4.1.x)
(was: 5.0.x)
(was: 6.x)
Since Version: 4.0
Source Control Link: https://github.com/apache/cassandra/commit/95088443ff2f4ed30ac52ef1d900049ee804b040
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
Merged to all the branches we maintain.
[~maedhroz] [~smiklosovic] [~bernardo.botella] thank you for review!
> The short -p option for the copyData arg in the Import node tool command conflicts with the --port option
> ---------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-20214
> URL: https://issues.apache.org/jira/browse/CASSANDRA-20214
> Project: Apache Cassandra
> Issue Type: Bug
> Components: Tool/nodetool
> Reporter: Maxim Muzafarov
> Assignee: Maxim Muzafarov
> Priority: Normal
> Fix For: 4.0.21, 4.1.12, 5.0.9, 6.0-alpha2, 7.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> In the Import nodetool command:
> {code}
> @Option(title = "copy_data",
> name = {"-p", "--copy-data"},
> description = "Copy data from source directories instead of moving them")
> private boolean copyData = false;
> {code}
> on the other hand, the command has another option:
> {code}
> @Option(type = OptionType.GLOBAL, name = {"-p", "--port"}, description = "Remote jmx agent port number")
> private String port = "7199";
> {code}
> If the -p option is set from the command line for the nodetool, it fails at the CLI parsing stage because it can't tell which option to use. Suggestion: rename the short name for the option copyData since it's not used by users and fails.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org