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

Bond::setCallbackQueue only sets the callback queue for Bond::bondStatusCB thread #50

Open
mikexing2018 opened this issue Apr 4, 2019 · 0 comments

Comments

@mikexing2018
Copy link

mikexing2018 commented Apr 4, 2019

Bond::setCallbackQueue is setting the callback queue for only the Bond::bondStatusCB thread while the heartbeat_timer_ still uses the node's global callbackqueue. This disparity seems odd. This means that we don't know in which thread the bond broken callback function will execute.

If the other process breaks the bond explicitly, bondStatusCB will trigger the bond broken callback in the callbackqueue set from Bond::setCallbackQueue()

On the other hand, if there is a heartbeat timeout, then the bond broken callback is executed in the global queue.

This indeterministic behaviour is impossible for a programmer that wishes his broken callback queue to execute consistently in a specified thread.

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