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 a bug when in single_active_consumer mode and deliver frame with more than one message, the result of the consumer_update_listener function was ignored. #206

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

nesb1
Copy link
Contributor

@nesb1 nesb1 commented Sep 28, 2024

Hi.

Fixed a bug when in single_active_consumer mode and deliver frame with more than one message, the result of the consumer_update_listener function was ignored.

…h more than one message, the result of the consumer_update_listener function was ignored.
await run_consumer(super_stream_consumer_for_sac3, consumer_stream_list3, consumer_update_handler_offset)
await run_consumer(super_stream_consumer_for_sac1, consumer_stream_list1, consumer_update_handler_first)
await run_consumer(super_stream_consumer_for_sac2, consumer_stream_list2, consumer_update_handler_first)
await run_consumer(super_stream_consumer_for_sac3, consumer_stream_list3, consumer_update_handler_first)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@nesb1 With this modification in place should this test still work with the original consumer_update_handler_offset?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, thist test will not work with consumer_update_handler_offset. Test checks that total count of all consumed messages equals to total count of all produced messages. consumer_update_handler_offset overides offset to consume from 10 message in stream, not from first, which means that total count of all consumed messages must be less than total count of all produced messages by 3 * 10 messages

@DanielePalaia DanielePalaia merged commit 7bad17d into qweeze:master Oct 2, 2024
1 check passed
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