-
Notifications
You must be signed in to change notification settings - Fork 1k
Ksql 13066 - Catch original GroupIdNotfoundException #10711
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
|
🎉 All Contributor License Agreements have been signed. Ready to merge. |
# Conflicts: # ksqldb-engine/src/test/java/io/confluent/ksql/integration/KafkaConsumerGroupClientTest.java
…uld be before 'org.apache.kafka.common.errors.RetriableException'.
…uld be before 'import org.apache.kafka.common.errors.GroupNotEmptyException;'.
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.
Pull Request Overview
This pull request ensures that the consumer group description functionality is tested by uncommenting an existing test and introduces explicit handling for non-existent consumer groups based on KIP-1043 in the consumer group client implementation.
- Uncomment the test case for describing a consumer group in KafkaConsumerGroupClientTest.
- Add a catch block for GroupIdNotFoundException in KafkaConsumerGroupClientImpl with debug logging and an empty summary return.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| ksqldb-engine/src/test/java/io/confluent/ksql/integration/KafkaConsumerGroupClientTest.java | Uncomment test for describing consumer groups |
| ksqldb-engine/src/main/java/io/confluent/ksql/services/KafkaConsumerGroupClientImpl.java | Add exception handling for GroupIdNotFoundException with appropriate logging |
VedarthConfluent
left a comment
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.
Makes sense as we want to retain existing behaviour. LGTM
Description
Context:
Following Kafka's KIP-1043, describing a non-existent consumer group now consistently throws GroupIdNotFoundException.
Treat this expected scenario as a group with zero consumers by returning an empty consumerGroupSummary. This logs the exception, encapsulates the exception handling, simplifying the caller's contract.
Another approach: #10727
Testing done
Describe the testing strategy. Unit and integration tests are expected for any behavior changes.
Reviewer checklist