peterxcli commented on code in PR #18101:
URL: https://github.com/apache/kafka/pull/18101#discussion_r1881566499
##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerHeartbeatRequestManager.java:
##########
@@ -97,6 +99,18 @@ public boolean handleSpecificError(final
ConsumerGroupHeartbeatResponse response
boolean errorHandled;
switch (error) {
+ case UNSUPPORTED_VERSION:
+ // Handle consumer-specific unsupported version error
+ String message = CONSUMER_PROTOCOL_NOT_SUPPORTED_MSG;
+ if (errorMessage.contains(REGEX_RESOLUTION_NOT_SUPPORTED_MSG))
{
+ // If the error is about regex subscription, use the
original error message
+ message = errorMessage;
+ }
Review Comment:
So I guess we should add a handle `onSpeficFailure` in each consumer just
like `handleSpecificError` did?
--
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]