Add compound primary key example to nodetool getendpoints help

patch by Arvind Kandpal; reviewed by Dmitry Konstantinov, Stefan Miklosovic for CASSANDRA-15904
This commit is contained in:
Arvind Kandpal 2026-07-24 15:22:50 +05:30 committed by Stefan Miklosovic
parent 564d30ad8e
commit f51c29c196
No known key found for this signature in database
GPG Key ID: 32F35CB2F546D93E
2 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ import static org.apache.cassandra.tools.nodetool.CommandUtils.concatArgs;
@Command(name = "getendpoints", description = "Print the end points that owns the key")
public class GetEndpoints extends AbstractCommand
{
@CassandraUsage(usage = "<keyspace> <table> <key>", description = "The keyspace, the table, and the partition key for which we need to find the endpoint")
@CassandraUsage(usage = "<keyspace> <table> <key>", description = "The keyspace, the table, and the partition key for which we need to find the endpoint (e.g., pk1:pk2:pk3 for compound keys)")
private List<String> args = new ArrayList<>();
@Parameters(index = "0", arity = "0..1", description = "The keyspace for which we need to find the endpoint")
@ -43,7 +43,7 @@ public class GetEndpoints extends AbstractCommand
@Parameters(index = "1", arity = "0..1", description = "The table for which we need to find the endpoint")
private String table;
@Parameters(index = "2", arity = "0..1", description = "The partition key for which we need to find the endpoint")
@Parameters(index = "2", arity = "0..1", description = "The partition key for which we need to find the endpoint (e.g., pk1:pk2:pk3 for compound keys)")
private String key;
@Mixin

View File

@ -34,4 +34,4 @@ OPTIONS
<keyspace> <table> <key>
The keyspace, the table, and the partition key for which we need to
find the endpoint
find the endpoint (e.g., pk1:pk2:pk3 for compound keys)