Skip to content

[FIXED] Replicated consumer's messages are returned after NoWait's request timeout #6960

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

Merged
merged 2 commits into from
Jun 10, 2025

Conversation

MauriceVanVeen
Copy link
Member

@MauriceVanVeen MauriceVanVeen commented Jun 10, 2025

Since consumer messages are now replicated fully prior to delivery, this broke NoWait pull requests. NoWait's request timeout would be sent earlier than the replication could complete. For a 2.11 patch version we now bypass replicating first, and send the messages to the client immediately without waiting for replication (just like we do for flow-controlled consumers, AckNone, etc.).

We might need to look into replicating first and sending NoWait's request timeout after the replicated messages are sent for 2.12 or later.

Introduced by #6792

Resolves #6952

Signed-off-by: Maurice van Veen [email protected]
Co-authored-by: Piotr Piotrowski [email protected]

@MauriceVanVeen MauriceVanVeen requested a review from a team as a code owner June 10, 2025 15:43
Copy link
Member

@neilalexander neilalexander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neilalexander neilalexander merged commit 79e399e into main Jun 10, 2025
111 of 114 checks passed
@neilalexander neilalexander deleted the maurice/consumer-no-wait branch June 10, 2025 16:41
neilalexander added a commit that referenced this pull request Jun 17, 2025
Includes the following:

- #6922
- #6931
- #6933
- #6934
- #6939
- #6938
- #6940
- #6941
- #6942
- #6943
- #6945
- #6944
- #6947
- #6948
- #6949
- #6956
- #6960
- #6961
- #6951
- #6965
- #6968
- #6981
- #6983
- #6984

Signed-off-by: Neil Twigg <[email protected]>
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.

FetchNoWait with batch size does not work with v2.11.4
3 participants