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

Error messages for cluster partition #687 [JIRA: RIAK-1468] #687

Open
macintux opened this issue Dec 19, 2014 · 0 comments
Open

Error messages for cluster partition #687 [JIRA: RIAK-1468] #687

macintux opened this issue Dec 19, 2014 · 0 comments

Comments

@macintux
Copy link
Contributor

One bug, one tweak

Specifying an index value outside the range can result in a crash:

$ ./riak-admin cluster partition index=2877331348495215120213504514410182194947617193984
RPC to 'dev1@127.0.0.1' failed: {'EXIT',
                                 {{badmatch,false},
                                  [{riak_core_ring,index_owner,2,
                                    [{file,"src/riak_core_ring.erl"},
                                     {line,407}]},
                                   {riak_core_cluster_cli,id_out1,4,
                                    [{file,"src/riak_core_cluster_cli.erl"},
                                     {line,250}]},
                                   {riak_core_cluster_cli,id_out,2,
                                    [{file,"src/riak_core_cluster_cli.erl"},
                                     {line,245}]},
                                   {clique,run,1,
                                    [{file,"src/clique.erl"},{line,99}]},
                                   {rpc,'-handle_call_call/6-fun-0-',5,
                                    [{file,"rpc.erl"},{line,205}]}]}}

ID outside the range:

Thunder:bin John$ ./riak-admin cluster partition id=65
ERROR: Id 65 is invalid.

Should specify ring size and/or max valid id.

@macintux macintux added the Bug label Dec 19, 2014
@Basho-JIRA Basho-JIRA changed the title Error messages for cluster partition Error messages for cluster partition #687 [JIRA: RIAK-1468] Jan 9, 2015
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

3 participants