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

redis-trib exception #2776

Open
qunchenmy opened this issue Sep 16, 2015 · 6 comments
Open

redis-trib exception #2776

qunchenmy opened this issue Sep 16, 2015 · 6 comments

Comments

@qunchenmy
Copy link

M: f3de034abc37347744385ad092e118f95df45a60 162.168.44.183:6630
slots:0-1799 (1800 slots) master
0 additional replica(s)
M: fcaf029016b2650d8f94b59e48e8df0b4011a85e 162.168.44.189:6632
slots:5984-6107,7200-7907,10800-11059 (1092 slots) master
0 additional replica(s)
M: 9f128386b7acb30513fe92ca27b3f08b54c5eacc 162.168.44.187:6630
slots:11508-12599 (1092 slots) master
0 additional replica(s)
[OK] All nodes agree about slots configuration.

Check for open slots...
[WARNING] Node 192.168.44.189:6631 has slots in importing state (12927).
[WARNING] The following slots are open: 12927
Check slots coverage...
[ERR] Not all 16384 slots are covered by nodes.
*** Please fix your cluster problems before resharding

@badboy
Copy link
Contributor

badboy commented Sep 16, 2015

redis-trib has a fix subcommand. Did you try it?

@qunchenmy
Copy link
Author

I Know。
But I wonder what has happened to cluster? no other operations.

@badboy
Copy link
Contributor

badboy commented Sep 16, 2015

[WARNING] Node 192.168.44.189:6631 has slots in importing state (12927).

Somehow one slot is still in importing state. Without knowing what you did, it's impossible to say why it is that way.

@qunchenmy
Copy link
Author

executing some resharding operations one by one;

./redis-trib.rb  reshard --from f3de034abc37347744385ad092e118f95df45a60 --to   7dd0ab807e0159022f5d7c966b7a8a68341aac56 --slots 701  --yes 192.166.42.183:6631
./redis-trib.rb  reshard --from f3de034abc37347744385ad092e118f95df45a60 --to 8e8ecbdcd97c2470e731833ea8182770c1c6f7aa --slots 7    --yes 192.166.42.183:6631
./redis-trib.rb  reshard --from e14b89b8a12a9bc516a1416ca5720f2f6929f479 --to 8e8ecbdcd97c2470e731833ea8182770c1c6f7aa --slots 708  --yes 192.166.42.183:6631
./redis-trib.rb  reshard --from df4206720b1fc411d03a4553ec17d604bdf15f77 --to 8e8ecbdcd97c2470e731833ea8182770c1c6f7aa --slots 377  --yes 192.166.42.183:6631

@umiyosh
Copy link

umiyosh commented Jan 3, 2017

Perhaps you had tried moving slot once before that but it should have failed.
I think that importing state had remained in that case.
Anyway, you can fix your problem as below.

% ssh 192.168.44.189
% redis-cli -p 6631 CLUSTER SETSLOT 12927 STABLE

@tjxs
Copy link

tjxs commented Jan 3, 2017

% ssh 192.168.44.189
% redis-cli -p 6631 CLUSTER SETSLOT 12927 STABLE

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

4 participants