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

[FIXED] Race in MessageBatch #1743

Merged
merged 2 commits into from
Dec 17, 2024
Merged

[FIXED] Race in MessageBatch #1743

merged 2 commits into from
Dec 17, 2024

Conversation

piotrpio
Copy link
Collaborator

@piotrpio piotrpio commented Dec 2, 2024

This fixes a race in both new and legacy JetStream API, where for Fetch APIs returning MessageBatch there was a race condition when accessing the error.

Fixes #1733

Signed-off-by: Piotr Piotrowski piotr@synadia.com

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@coveralls
Copy link

Coverage Status

coverage: 84.923% (-0.02%) from 84.944%
when pulling e58d428 on fix-fetch-result-race
into f563c66 on main.

Copy link
Member

@wallyqs wallyqs left a comment

Choose a reason for hiding this comment

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

LGTM

@piotrpio piotrpio requested a review from Jarema December 13, 2024 14:59
Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM

@piotrpio piotrpio merged commit 6bc4159 into main Dec 17, 2024
6 checks passed
@piotrpio piotrpio deleted the fix-fetch-result-race branch December 17, 2024 14:05
@piotrpio piotrpio mentioned this pull request Dec 17, 2024
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.

Race in reading error from message batch
4 participants