-
Notifications
You must be signed in to change notification settings - Fork 100
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
Registry.select/2 does not filter out stale entries #136
Comments
I think a good first pass solution (and possibly even a permanent solution) for this would be to filter out any entries that reside on disconnected nodes. |
This is a lot trickier than I thought. Because the user has full control over what is returned from If anyone has a suggestion on how to make this work, would be much appreciated. |
Registry.lookup/2
checks whether the returned result is a) still member of the cluster and b) an alive process. However,Registry.select/2
does not do this, and this can lead to confusing results. However, scanning each result fromselect
might be expensive as it can return many results.This ticket is intended as a placeholder ticket as we don't have a good solution for this yet.
The text was updated successfully, but these errors were encountered: