dajac commented on code in PR #15152:
URL: https://github.com/apache/kafka/pull/15152#discussion_r1466643378


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/Group.java:
##########
@@ -40,6 +42,29 @@ enum GroupType {
         public String toString() {
             return name;
         }
+
+        /**
+         * Parse a string into the corresponding {@code GroupType} enum value, 
in a case-insensitive manner.
+         *
+         * @return The {{@link GroupType}} according to the string passed.
+         *
+         * @throws IllegalArgumentException If the input string does not match 
any {@code GroupType}.
+         */
+        public static GroupType parse(String typeString) {
+            for (GroupType type : GroupType.values()) {

Review Comment:
   We don't have to change to using the client side type is this PR though.



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