In order to make it specific enough, here set an example, a cluster with nodes 127.0.0.1, 127.0.0.2, 127.0.0.3
, and consistency level is quorum. Here is the process: firstly, get the token range by executing nodetool describering <keyspace>
, then get:
TokenRange(start_token:9140250233623497227, end_token:9153470637258054361, endpoints:[127.0.0.1, 127.0.0.2]...
Secondly, execute
nodetool -h 127.0.0.3 repair -pr -st 9140250233623497227 -et 9153470637258054361
Finally, logs print repair successfully.
Is there anything bad when executes nodetool repair whose host ip doesn’t match token range?