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

Race condition on service discovery #49

Closed
claustres opened this issue Jan 15, 2020 · 1 comment
Closed

Race condition on service discovery #49

claustres opened this issue Jan 15, 2020 · 1 comment
Labels

Comments

@claustres
Copy link
Member

Steps to reproduce

Start two apps running the distribution module at the same time.

Expected behavior

Every app correctly sees services from the other one.

Actual behavior

It appears that there is a race condition where one app cannot see the second one. If the second app is restarted then it appears correctly.

Because app services publication relies on event publishers/subscribers there is no guarantee of delivery, the bug might appear when the publisher and subscriber are created almost at the same time, so that it could be a duplicate of #1.

System configuration

Tell us about the applicable parts of your setup.

Module versions (especially the part that's not working): 0.7.1

NodeJS version: 8.16

Operating System: Linux (Debian)

@claustres claustres added the bug label Jan 15, 2020
@claustres
Copy link
Member Author

Closing of #48 might have fixed this issue, to be checked.

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

No branches or pull requests

1 participant