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

关于pre migrate #152

Open
yanglimingcn opened this issue Jul 22, 2016 · 0 comments
Open

关于pre migrate #152

yanglimingcn opened this issue Jul 22, 2016 · 0 comments

Comments

@yanglimingcn
Copy link

我看到迁移过程中有个状态SLOT_STATUS_PRE_MIGRATE,但是我在程序中一直没看到过将slot设置成这个状态的地方。这样在migrate操作过程中可能会出现竞争条件,即在slot的slotInfo信息变更过程中,仍然有proxy在做set/get等操作。
route.go:583
case r := <-s.reqCh:
if s.slots[r.slotIdx].slotInfo.State.Status == models.SLOT_STATUS_PRE_MIGRATE {
s.bufferedReq.PushBack(r)
continue
}
此段程序逻辑一直不会走到。
请确认是不是有这个问题呢?

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