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

Leaving group using High-level consumer #550

Open
pherrymason opened this issue Apr 19, 2024 · 0 comments
Open

Leaving group using High-level consumer #550

pherrymason opened this issue Apr 19, 2024 · 0 comments
Labels

Comments

@pherrymason
Copy link

Description

I'm using the High-level consumer in a long process to read messages from a topic.
And basically my code has this shape:

        $consumer->subscribe($this->topics);
        while (true) {
            $message = $consumer->consume(1000);
            // do my stuff
            $consumer->commit($message);
        }

Doing this, sometimes I get a Application maximum poll interval (300000ms) exceeded by 5ms (adjust max.poll.interval.ms for long-running message processing): leaving group

Reading about this error, I see that one needs to call poll() every iteration, but I don't see this method defined in the High-level consumer. Is it doing it automatically for me?
Is there anything else I need to configure to fix this? (Is not very frequent, but it happens once a month for example)

php-rdkafka Version

6.0.3

librdkafka Version

No response

PHP Version

PHP 8.3

Operating System

No response

Kafka Version

No response

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

No branches or pull requests

1 participant