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

feat: Always pass a commit policy to Arroyo stream processor #3257

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

lynnagara
Copy link
Member

Soon this will become a mandatory argument

Soon this will become a mandatory argument
@lynnagara lynnagara requested a review from a team as a code owner October 13, 2022 23:47
@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2022

Codecov Report

Base: 92.30% // Head: 92.33% // Increases project coverage by +0.03% 🎉

Coverage data is based on head (0eb7aaa) compared to base (a77edea).
Patch coverage: 66.66% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3257      +/-   ##
==========================================
+ Coverage   92.30%   92.33%   +0.03%     
==========================================
  Files         697      697              
  Lines       31630    31611      -19     
==========================================
- Hits        29195    29187       -8     
+ Misses       2435     2424      -11     
Impacted Files Coverage Δ
snuba/cli/replacer.py 47.82% <0.00%> (-1.07%) ⬇️
snuba/consumers/consumer_builder.py 42.10% <50.00%> (+0.51%) ⬆️
snuba/cli/multistorage_consumer.py 43.00% <100.00%> (+0.57%) ⬆️
snuba/subscriptions/combined_scheduler_executor.py 78.84% <100.00%> (+0.20%) ⬆️
snuba/subscriptions/scheduler_consumer.py 92.90% <100.00%> (+0.05%) ⬆️
snuba/datasets/entities/generic_metrics.py 95.34% <0.00%> (-2.33%) ⬇️
snuba/datasets/message_filters.py 95.34% <0.00%> (-1.67%) ⬇️
snuba/settings/__init__.py 95.36% <0.00%> (-0.04%) ⬇️
snuba/datasets/storages/errors.py 100.00% <0.00%> (ø)
snuba/datasets/storages/errors_v2.py 100.00% <0.00%> (ø)
... and 11 more

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.

tick_consumer,
Topic(commit_log_topic.topic_name),
factory,
tick_consumer, Topic(commit_log_topic.topic_name), factory, ONCE_PER_SECOND
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, why is this one ONCE_PER_SECOND? Was that defined somewhere else already? Based on the other changes I assumed IMMEDIATE was the default.

Copy link
Member Author

@lynnagara lynnagara Oct 14, 2022

Choose a reason for hiding this comment

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

You're right, this is actually changing from IMMEDIATE to ONCE_PER_SECOND. This is because committing every offset to Kafka is a bad idea and we should actually throttle here. It's the only functional change in this PR. The others do batch processing already and commit once at the end of the batch so I left them all as IMMEDIATE.

@lynnagara lynnagara merged commit a2d9ba2 into master Oct 14, 2022
@lynnagara lynnagara deleted the always-pass-commit-policy branch October 14, 2022 19:43
enochtangg pushed a commit that referenced this pull request Oct 17, 2022
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