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

Address resolution not consistent #5915

Open
fjetter opened this issue Mar 9, 2022 · 0 comments
Open

Address resolution not consistent #5915

fjetter opened this issue Mar 9, 2022 · 0 comments
Labels
bug Something is broken

Comments

@fjetter
Copy link
Member

fjetter commented Mar 9, 2022

Dask typically can work with fully resolved host addresses (127.0.0.1:1234 ) or hostnames (localhost:1234) interchangeably by resolving the hostname where necessary.

We have various toggle over the code base controlling this behaviour

They are all accessing distributed.com.addressing.resolve_address which then dispatches the resolve to the used network backend based on the URL scheme.

We're not very consistent in this behaviour and I believe that if we want to resolve addresses, we should resolve all addresses as soon as the user passes them in.

Particularly, where we're not resolving addresses are

This can cause confusing and wrong behaviour whenever we're comparing addresses, e.g.

Side note: There is an ambiguous, not documented Scheduler.coerce_hostname which is not connected to address resolution but rather checks the internal list of aliases

  • I would suggest to remove the kwargs in most of the functions and replace it with a config toggle, if we want to allow toggling.
  • We should ensure that this behaviour is consistent, e.g. all addresses are always resolved or never
@fjetter fjetter added the bug Something is broken label Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant