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

ChoosableSet.choose() may return invalid registration information #80

Open
hedyn opened this issue May 15, 2019 · 0 comments
Open

ChoosableSet.choose() may return invalid registration information #80

hedyn opened this issue May 15, 2019 · 0 comments

Comments

@hedyn
Copy link

hedyn commented May 15, 2019

When an event is sent to the restarted node, the ServerID is obtained before the reboot.
"iter" should be set to null after calling the add, remove, merge methods of ChoosableSet class.

io.vertx.spi.cluster.zookeeper.impl.ChoosableSet:

public void add(T elem) {
ids.add(elem);
iter = null;
}

public void remove(T elem) {
ids.remove(elem);
iter = null;
}

public void merge(ChoosableSet<T> toMerge) {
ids.addAll(toMerge.ids);
iter = null;
}

@hedyn hedyn changed the title ChoosableSet.choose() 方法可能返回失效的注册信息 ChoosableSet.choose() may return invalid registration information Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant