-
Notifications
You must be signed in to change notification settings - Fork 14
Minor change in poll method. #495
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
Conversation
fcff50f
to
c7f07ce
Compare
Codecov Report
@@ Coverage Diff @@
## master #495 +/- ##
================================================
+ Coverage 88.9567% 89.5700% +0.6133%
================================================
Files 82 82
Lines 2952 2953 +1
Branches 329 330 +1
================================================
+ Hits 2626 2645 +19
+ Misses 178 153 -25
- Partials 148 155 +7
Continue to review full report at Codecov.
|
96e9cbc
to
2a36532
Compare
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.
The code looks good to me, but the commit message does not look good. Please explain the problem we want to solve and how do we solve it.
2a36532
to
f752c63
Compare
The issue is about sending POST requests for committing ofsets in `poll` method even if no messages in `poll` response. The backend sends back an error about invalid parameters of committing offsets requests in this case. This fix checks the count of messages in the poll response and sends committing requests only if messages are retrieved. Relates-To: OLPEDGE-2663 Signed-off-by: Oleksii Zubko <[email protected]>
f752c63
to
bdb2469
Compare
The issue is about sending POST requests for committing ofsets in
poll
methodeven if no messages in
poll
response.The backend sends back an error about invalid parameters of committing offsets
requests in this case.
This fix checks the count of messages in the poll
response and sends committing requests only if messages are retrieved.
Relates-To: OLPEDGE-2663