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

Use IPAddresses from HostSupplier rather than from AbstractTokenMapSu… #281

Merged
merged 1 commit into from
Aug 30, 2019

Conversation

smukil
Copy link
Contributor

@smukil smukil commented Aug 30, 2019

…pplier

We always used the IPs from the HostSupplier rather than the
AbstractTokenMapSupplier as an undocumented subtlety.

In the previous patch, this was changed as it seemed like a harmless
change.
7b25392

Howver, the implication is that the client operates on Public IPs (which
the AbstractTokenMapSupplier supplies), as opposed to the Private IPs
(which the HostSupplier supplies), and in production, the Public IP
range are generally not accessible by clients.

Why does the AbstractTokenMapSupplier return public IPs?
This is because the AbstractTokenMapSupplier derives its values from
dynomite-manager which returns the topology seen by it and the server
processes, and they use Public IPs to communicate with each other.

TODO: Can we ensure that both the HostSupplier and AbstractTokenMapSupplier
agree on the same values?

…pplier

We always used the IPs from the HostSupplier rather than the
AbstractTokenMapSupplier as an undocumented subtlety.

In the previous patch, this was changed as it seemed like a harmless
change.
Netflix@7b25392

Howver, the implication is that the client operates on Public IPs (which
the AbstractTokenMapSupplier supplies), as opposed to the Private IPs
(which the HostSupplier supplies), and in production, the Public IP
range are generally not accessible by clients.

Why does the AbstractTokenMapSupplier return public IPs?
This is because the AbstractTokenMapSupplier derives its values from
dynomite-manager which returns the topology seen by it and the server
processes, and they use Public IPs to communicate with each other.

TODO: Can we ensure that both the HostSupplier and AbstractTokenMapSupplier
agree on the same values?
@smukil smukil added the bug label Aug 30, 2019
@smukil smukil self-assigned this Aug 30, 2019
@smukil smukil merged commit d6f3674 into Netflix:master Aug 30, 2019
@rsrinivasanNetflix
Copy link
Contributor

thanks for fixing this @smukil !

@chrisbendel
Copy link

chrisbendel commented Oct 28, 2019

@rsrinivasanNetflix @smukil Could this have possibly fixed: #273 and #264 ? Would be good to know to close out some issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants