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

   Jira: https://issues.apache.org/jira/browse/KAFKA-18157
   
   This is a rebase of #18072 onto current trunk, plus the additional scope 
requested
   
   Add a new exception class, `UnsupportedProtocolFieldException`, as a
   subclass of `UnsupportedVersionException`, to provide a more specific
   message for unsupported fields.
   
   `ConsumerGroupHeartbeatRequest.Builder` now throws 
`UnsupportedProtocolFieldException`
     when `subscribedTopicRegex` is set against a server that only supports v0.
     `ConsumerHeartbeatRequestManager` uses `instanceof 
UnsupportedProtocolFieldException`
     to detect this case instead of comparing message strings. Any future 
field-validation
     errors added to `ConsumerGroupHeartbeatRequest.Builder` will be caught by 
the same
     `instanceof` check automatically, but the error message propagated to the 
user will need to
     be updated accordingly.


-- 
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