dongnuo123 opened a new pull request, #22580:
URL: https://github.com/apache/kafka/pull/22580

   When the subscription deserialization fails, we throw an 
IllegalStateException
   ```
   private static ConsumerProtocolSubscription deserializeSubscription(
     JoinGroupRequestProtocolCollection protocols
   ) {
     try {
     return ConsumerProtocol.deserializeConsumerProtocolSubscription(
       ByteBuffer.wrap(protocols.iterator().next().metadata())); 
     }
     catch (SchemaException e) { 
     throw new IllegalStateException("Malformed embedded consumer protocol in 
subscription deserialization."); 
     }
   }
   ```
   which will be translated to UNKNOWN_SERVER_ERROR. This is a bit confusing to 
the client. We throw a fatal `INCONSISTENT_GROUP_PROTOCOL` here instead.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to