lianetm commented on code in PR #14640:
URL: https://github.com/apache/kafka/pull/14640#discussion_r1421557841


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java:
##########
@@ -180,12 +179,12 @@ private void process(final ListOffsetsApplicationEvent 
event) {
      * consumer join the group if it is not part of it yet, or send the 
updated subscription if
      * it is already a member.
      */
-    private void process(final SubscriptionChangeApplicationEvent event) {
-        if (!requestManagers.membershipManager.isPresent()) {
-            throw new RuntimeException("Group membership manager not present 
when processing a " +
-                    "subscribe event");
+    private void process(final SubscriptionChangeApplicationEvent ignored) {
+        if (!requestManagers.heartbeatRequestManager.isPresent()) {

Review Comment:
   Actually I think that keeping the `MembershipMgr` in the `RequestManagers` 
as it was before this change would be conceptually right, because we do want 
the `MembershipMgr` to be a regular manager, that can be polled to trigger 
reconciliation processes 
([KAFKA-15832](https://issues.apache.org/jira/browse/KAFKA-15832)).



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