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

Target key is busy #12

Closed
left2right opened this issue Oct 31, 2015 · 3 comments
Closed

Target key is busy #12

left2right opened this issue Oct 31, 2015 · 3 comments

Comments

@left2right
Copy link

迁移数据从codis到redis时,报错 panic Target key is busy,请问这是什么原因,怎么解决?谢谢

@spinlock
Copy link
Member

spinlock commented Nov 1, 2015

首先,你改了 redis-port ? 用的 restore 指令?如果是那样的话,你需要在 restore 指令前先发送一个 del 指令,具体的原因 http://redis.io/commands/restore 里面提到了,restore 不会自动覆盖。

@spinlock
Copy link
Member

spinlock commented Nov 1, 2015

或者 redis 3.0 之后增加 REPLACE 参数

@left2right
Copy link
Author

嗯,是用的restore,多谢建议

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

2 participants