Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ignore_nodes option for nodetool repair #248

Open
asias opened this issue Apr 26, 2021 · 0 comments
Open

Support ignore_nodes option for nodetool repair #248

asias opened this issue Apr 26, 2021 · 0 comments

Comments

@asias
Copy link
Contributor

asias commented Apr 26, 2021

The following scylla commit added a new rest api option to scylla core. We need to teach nodetool to use this new option.

commit 61ac8d03b920523ad183f3723fb59baf0d5d982f
Author: Asias He <[email protected]>
Date:   Mon Mar 8 10:23:26 2021 +0800

    repair: Add ignore_nodes option
    
    In some cases, user may want to repair the cluster, ignoring the node
    that is down. For example, run repair before run removenode operation to
    remove a dead node.
    
    Currently, repair will ignore the dead node and keep running repair
    without the dead node but report the repair is partial and report the
    repair is failed. It is hard to tell if the repair is failed only due to
    the dead node is not present or some other errors.
    
    In order to exclude the dead node, one can use the hosts option. But it
    is hard to understand and use, because one needs to list all the "good"
    hosts including the node itself. It will be much simpler, if one can
    just specify the node to exclude explicitly.
    
    In addition, we support ignore nodes option in other node operations
    like removenode. This change makes the interface to ignore a node
    explicitly more consistent.
    
    Refs: #7806
    
    Closes #8233

Example

curl -X POST http://127.0.0.1:10000/storage_service/repair_async/myks3?ignore_nodes="127.0.0.2,127.0.0.3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant