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

ref: Use message.position_to_commit from arroyo #3246

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

lynnagara
Copy link
Member

This simplifies getting the right position to commit from Arroyo. Also fixes a bug where the wrong offset was being committed on shutdown (it should be message.next_offset but we were actually committing message.offset)

This simplifies getting the right position to commit from Arroyo.
Also fixes a bug where the wrong offset was being committed on shutdown
(it should be message.next_offset but we were actually committing message.offset)
@lynnagara lynnagara requested a review from a team as a code owner October 12, 2022 23:08
@codecov-commenter
Copy link

Codecov Report

Base: 92.31% // Head: 92.31% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (261044e) compared to base (eeeccdb).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3246   +/-   ##
=======================================
  Coverage   92.31%   92.31%           
=======================================
  Files         699      699           
  Lines       31677    31677           
=======================================
+ Hits        29242    29243    +1     
+ Misses       2435     2434    -1     
Impacted Files Coverage Δ
snuba/subscriptions/executor_consumer.py 91.84% <100.00%> (ø)
snuba/state/cache/redis/backend.py 96.70% <0.00%> (+1.09%) ⬆️

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lynnagara lynnagara merged commit 101e866 into master Oct 13, 2022
@lynnagara lynnagara deleted the use-position-to-commit branch October 13, 2022 16:55
enochtangg pushed a commit that referenced this pull request Oct 17, 2022
This simplifies getting the right position to commit from Arroyo. Also fixes a bug where the wrong offset was being committed on shutdown (it should be message.next_offset but we were actually committing message.offset)
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.

3 participants