-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Meteor 3.0 - FIX - publication handler is not being waited on #12972
Meteor 3.0 - FIX - publication handler is not being waited on #12972
Conversation
…essage in queue (except when unblocked explicitily)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Once the tests succeed, we can merge this.
@denihs I think at least one test should be added to avoid regressions for this case, right? cc @renanccastro |
Just mentioning here that the test that fails here is the same that fails from the release-3.0 base branch, so it is not related with these changes. It also happens on a branch that I am fixing an issue for 3.x. There should be a branch that was merged against 3.0 that introduced it. release-3.0 branch failure: |
@denihs added a new regression test for this case |
Merging it since the test failing here is already solved in the 3.0 branch |
Hello!
Found this issue while seeing metrics on Monti APM with Meteor 3.
When we have an async publication handler, Meteor livedata server is not waiting for the promise resolution(either success/error) to unblock the processMessage handler.
The current behavior is like all publications are being unblocked.
This PR fixes it.