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

   As mentioned in 
https://github.com/apache/kafka/pull/19378#pullrequestreview-2775598123, the 
error messages for a 4.1 share consumer could be clearer for the different 
cases for when it cannot successfully join a share group.
   
   Now, for a 4.1 consumer connecting to a 4.0 broker with share groups 
disabled:
   ```
   org.apache.kafka.common.errors.UnsupportedVersionException: The cluster does 
not support the share group protocol using ShareGroupHeartbeat API version 1 or 
later. This version of the API was introduced in Apache Kafka v4.1.
   Caused by: org.apache.kafka.common.errors.UnsupportedVersionException: The 
node does not support SHARE_GROUP_HEARTBEAT
   ```
   
   And a 4.1 consumer connecting to a 4.0 broker with share groups enabled:
   ```
   org.apache.kafka.common.errors.UnsupportedVersionException: The cluster does 
not support the share group protocol using ShareGroupHeartbeat API version 1 or 
later. This version of the API was introduced in Apache Kafka v4.1.
   Caused by: org.apache.kafka.common.errors.UnsupportedVersionException: The 
node does not support SHARE_GROUP_HEARTBEAT with version in range [1,1]. The 
supported range is [0,0].
   ```
   
   And a 4.1 consumer connecting to a 4.1 broker with share groups disabled:
   ```
   org.apache.kafka.common.errors.UnsupportedVersionException: The cluster does 
not support the share group protocol. To use share groups, the cluster must 
have the share group protocol enabled.
   ```


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to