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

Fix JetStream tests by awaiting publish acks #485

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Mar 1, 2023

Since 2.9.15, the server handles inbound messages in a separate execution context, which is an optimisation, but it also means clients can't rely on flushing published messages to ensure that JetStream has it stored and accounted. That behaviour was never guaranteed, and it worked only because of the lack of this optimisation.

Signed-off-by: Tomasz Pietrek tomasz@nats.io

@Jarema Jarema requested a review from aricart March 1, 2023 08:01
@aricart
Copy link
Member

aricart commented Mar 1, 2023

LGTM - changed so that the publishes don't await the full round trip - on at least one of the tests it should be significantly faster - TY for doing the PR

@aricart aricart self-requested a review March 1, 2023 18:59
@aricart aricart merged commit e5cb75f into main Mar 1, 2023
@aricart aricart deleted the jarema/fix-js-tests branch March 1, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants