chia7712 commented on code in PR #17418:
URL: https://github.com/apache/kafka/pull/17418#discussion_r1804515583


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/ApplicationEventProcessor.java:
##########
@@ -358,12 +358,19 @@ private void process(final ShareAcknowledgeAsyncEvent 
event) {
      * consumer join the share group if it is not part of it yet, or send the 
updated subscription if
      * it is already a member.
      */
-    private void process(final ShareSubscriptionChangeEvent ignored) {
+    private void process(final ShareSubscriptionChangeEvent event) {
         if (!requestManagers.shareHeartbeatRequestManager.isPresent()) {
-            log.warn("Group membership manager not present when processing a 
subscribe event");
+            KafkaException error = new KafkaException("Group membership 
manager not present when processing a subscribe event");
+            event.future().completeExceptionally(error);
             return;
         }
+
+        if (subscriptions.subscribeToShareGroup(event.topics()))
+            metadata.requestUpdateForNewTopics();

Review Comment:
   @kirktrue @lianetm @FrankYang0529 FYI



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