huxihx created KAFKA-6814:
-----------------------------

             Summary: Bad exception message for 
GroupIdNotFoundException/GroupNotEmptyException
                 Key: KAFKA-6814
                 URL: https://issues.apache.org/jira/browse/KAFKA-6814
             Project: Kafka
          Issue Type: Bug
          Components: clients
    Affects Versions: 1.1.0
            Reporter: huxihx


Both `GroupNotEmptyException` and `GroupIdNotFoundException` constructors 
accept group id to deliver the exception message. However they can only be 
created with a fixed string "The group id does not exist" or "The group is not 
empty" which leads to a very unfriendly message when user failed to delete 
consumer groups, as below:
{code:java}
java.util.concurrent.ExecutionException: 
org.apache.kafka.common.errors.GroupIdNotFoundException: The group id The group 
id does not exist was not found{code}
group id got failed to be shown in the thrown exception. 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to