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

KafkaReceiver does not account for consumer group joining #421

Closed
ddingel opened this issue Aug 22, 2020 · 2 comments
Closed

KafkaReceiver does not account for consumer group joining #421

ddingel opened this issue Aug 22, 2020 · 2 comments

Comments

@ddingel
Copy link
Contributor

ddingel commented Aug 22, 2020

Description

Following up the discussions in this issue Kafka-produce and consume JSON message, Assert fails for 'consume' operation
KafkaReceiver currently does not track if the consumer group joining has finished.

The Problem Statement

If the consumer group join takes longer than maxNoOfRetryPollsOrTimeouts * pollingTime the consumer will not process any messages and report an empty record set. This situation also aften expects the pollingTime to be adjusted while running in different hardware configuations such as inside a docker or a standalone Jenkins or laptop etc, which is not a very good user/automation experience.

Solution

AC1 :
A fix could be to modify the receiving part, that the consumer tries to successfully join the consumer group and if that fails err out with an explanation.

AC2:
As explained here

  • Do a first poll outside of the loop to trigger the consumer group rebalancing
  • Ignore any runs if there is no assignment for that consumer
    • i.e. Do not increase maxNoOfRetryPollsOrTimeouts if there is no assignment
    • i.e. Increase the maxNoOfRetryPollsOrTimeouts only if there was an successful assignment
@authorjapps
Copy link
Owner

authorjapps commented Aug 25, 2020

Available in 1.3.24. Yet to release.

  • Re-Scheduled for Sunday: 6-Sep-2020, Sunday
  • Attempted twice to release today: Error occurred:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] fatal: Could not read from remote repository.
...
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to github.com port 22.
ssh: connect to host github.com port 22: Operation timed out

@authorjapps
Copy link
Owner

Released.
See Release Notes here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants