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

Ensure that new sources don't try to connect to old workers #2004

Merged
merged 1 commit into from
Jan 25, 2018

Conversation

jtfmumm
Copy link
Contributor

@jtfmumm jtfmumm commented Jan 24, 2018

This was caused by two issues:

  1. When a DataReceiver was disposed (when a worker leaves the
    cluster, it calls dispose() on all DataReceivers), it wasn't
    telling its corresponding Boundary that it's out for good.
    So the Boundary kept trying to reconnect.

  2. When new sources connected after a shrink, they were given
    outdated boundary builders. This led them to try to connect
    to workers that were no longer part of the cluster.

This commit fixes both.

Closes #2001

This was caused by two issues:

1) When a DataReceiver was disposed (when a worker leaves the
cluster, it calls dispose() on all DataReceivers), it wasn't
telling its corresponding Boundary that it's out for good.
So the Boundary kept trying to reconnect.

2) When new sources connected after a shrink, they were given
outdated boundary builders.  This led them to try to connect
to workers that were no longer part of the cluster.

This commit fixes both.

Closes #2001
@SeanTAllen SeanTAllen merged commit 660ec63 into master Jan 25, 2018
@SeanTAllen SeanTAllen deleted the shrink_reconnect branch January 25, 2018 13:43
wallaroolabs-wally added a commit that referenced this pull request Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

After shrink to fit from 2 to 1, initializer keeps reconnecting boundary
2 participants