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 JetStream ACK custom serialization #255

Merged
merged 3 commits into from
Nov 28, 2023

Conversation

mtmk
Copy link
Collaborator

@mtmk mtmk commented Nov 28, 2023

When a custom serializer used JetStream msg ACKs are still being serialized using the custom serializer which is resulting in +ACK being sent to the server with a distorted format. Now we just used the NATS default serializer on message ACKs to format the +ACK/NAK/etc. payload correctly.

ConsumerFetchTest.cs was also passing for the wrong reasons, which is also fixed. Plus minor format issue fixed.

When a custom serializer used JetStream msg ACKs are still being serialized
using the custom serializer which is resulting in +ACK being sent to the
server with a distorted format. Now we just used the NATS default serializer
on message ACKs to format the +ACK/NAK/etc. payload correctly.

ConsumerFetchTest.cs was also passing for the wrong reasons, which is also
fixed. Plus minor format issue fixed.
@mtmk mtmk linked an issue Nov 28, 2023 that may be closed by this pull request
@mtmk mtmk requested a review from caleblloyd November 28, 2023 01:32
Copy link
Collaborator

@caleblloyd caleblloyd left a comment

Choose a reason for hiding this comment

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

LGTM

@mtmk
Copy link
Collaborator Author

mtmk commented Nov 28, 2023

usual test flappers left.

@mtmk mtmk merged commit a387d6e into main Nov 28, 2023
6 of 9 checks passed
@mtmk mtmk deleted the 254-jetstream-ack-wont-work-with-custom-serializer branch November 28, 2023 02:17
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.

JetStream ACK won't work with custom serializer
2 participants