chickenchickenlove commented on code in PR #23706:
URL: https://github.com/apache/kafka/pull/23706#discussion_r4474883118


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorConfig.java:
##########
@@ -972,6 +972,11 @@ protected List<TaskAssignor> streamsGroupAssignors(
 
                 assignors.add(assignor);
 
+                if (!assignor.name().equals(assignor.name().trim())) {
+                    throw new ConfigException(STREAMS_GROUP_ASSIGNORS_CONFIG, 
configuredAssignor,
+                        "Assignor name '" + assignor.name() + "' must not 
contain leading or trailing whitespace.");
+                }

Review Comment:
   Thanks for taking the time to look into this!
   Let me check first. If feasible, I'll prepare another commit to extend the 
scope to include both share and consumer assignors!



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