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

Ack filtered messages when using .take() #488

Merged

Conversation

artem-ilin
Copy link
Contributor

The issue:
When using filter().take() chain, the filtered out messages are not getting acked (if NO_CYTHON=False).
There has been a PR #208 which aimed to fix the same issue, but it only fixed it for installations that don't use cython. For NO_CYTHON=False this solution didn't work.

Solution:
Compare the message value to the skipped_value and ack it.

Note:
The test I added runs red before fix and green after fix. It may look a little bit clumsy but it shows the issue.
Any suggestions are welcome.

@artem-ilin artem-ilin force-pushed the fix_ack_filtered_messages branch from f1f342c to c99053f Compare April 1, 2023 18:36
@codecov-commenter
Copy link

codecov-commenter commented Apr 1, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (99ab4f6) 93.69% compared to head (c99053f) 93.69%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #488   +/-   ##
=======================================
  Coverage   93.69%   93.69%           
=======================================
  Files         102      102           
  Lines       11137    11137           
  Branches     1530     1530           
=======================================
  Hits        10435    10435           
  Misses        615      615           
  Partials       87       87           
Impacted Files Coverage Δ
faust/streams.py 88.01% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wbarnha
Copy link
Member

wbarnha commented Apr 1, 2023

This is awesome, thank you so much for the PR!

@wbarnha wbarnha requested a review from patkivikram April 1, 2023 19:54
@patkivikram patkivikram merged commit f741fd9 into faust-streaming:master Apr 3, 2023
@artem-ilin artem-ilin deleted the fix_ack_filtered_messages branch April 3, 2023 13:06
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.

5 participants