-
Notifications
You must be signed in to change notification settings - Fork 183
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
Fix disabled aiokafka unit tests #610
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #610 +/- ##
==========================================
+ Coverage 93.69% 94.08% +0.38%
==========================================
Files 102 102
Lines 11117 11117
Branches 1550 1550
==========================================
+ Hits 10416 10459 +43
+ Misses 609 558 -51
- Partials 92 100 +8 ☔ View full report in Codecov by Sentry. |
@@ -840,14 +840,14 @@ def _verify_aiokafka_event_path(self, now: float, tp: TP) -> bool: | |||
poll_at = None | |||
aiotp_state = assignment.state_value(aiotp) | |||
if aiotp_state and aiotp_state.timestamp: | |||
poll_at = aiotp_state.timestamp / 1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this change was originally implemented in dcc421f by @patkivikram, could you expand on this?
if poll_at is None: | ||
if secs_since_started >= self.tp_fetch_request_timeout_secs: | ||
# NO FETCH REQUEST SENT AT ALL SINCE WORKER START | ||
self.log.error( | ||
SLOW_PROCESSING_NO_FETCH_SINCE_START, | ||
tp, | ||
secs_since_started, | ||
humanize_seconds_ago(secs_since_started), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidentally reverted this in master
, ignore.
It's going to be hard to investigate what's going on with #175 unless we get better testing in place.