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

一致性检查可能存在问题 #24

Closed
doyoubi opened this issue Aug 11, 2016 · 1 comment
Closed

一致性检查可能存在问题 #24

doyoubi opened this issue Aug 11, 2016 · 1 comment

Comments

@doyoubi
Copy link
Contributor

doyoubi commented Aug 11, 2016

由于对节点做更改操作后, 可能cluster nodes没有立刻反应修改的东西(如之前发现的加了节点后, cluster nodes里面有一瞬间还没改), 导致现在的一致性检查(cluster.wait)可能存在这样的bug:

  1. 对节点做了更改操作
  2. 操作完成后, 所有节点在一瞬间响应的cluster nodes没有更改, 跟之前一样.
  3. wait的consistent检查在这一瞬间通过, 但是再后面的consistent检查中, 某些节点的cluster nodes开始反应有更改了, 这样后续的consistent操作就会不通过.
@doyoubi
Copy link
Contributor Author

doyoubi commented Aug 15, 2016

实验过, 也查过redis代码了, 槽位更改后, cluster nodes会立刻反映新的槽位信息.

@doyoubi doyoubi closed this as completed Aug 15, 2016
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