mimaison commented on code in PR #12432:
URL: https://github.com/apache/kafka/pull/12432#discussion_r933420173


##########
connect/mirror/src/main/java/org/apache/kafka/connect/mirror/MirrorCheckpointTask.java:
##########
@@ -306,7 +308,16 @@ Map<String, Map<TopicPartition, OffsetAndMetadata>> 
syncGroupOffset() {
 
     void syncGroupOffset(String consumerGroupId, Map<TopicPartition, 
OffsetAndMetadata> offsetToSync) {
         if (targetAdminClient != null) {
-            targetAdminClient.alterConsumerGroupOffsets(consumerGroupId, 
offsetToSync);
+            AlterConsumerGroupOffsetsResult result = 
targetAdminClient.alterConsumerGroupOffsets(consumerGroupId, offsetToSync);
+            result.all().whenComplete((v, throwable) -> {
+                if (throwable != null) {
+                    if (throwable.getCause() instanceof 
UnknownMemberIdException) {

Review Comment:
   The outer exception depends how the future is completed but I _think_ the 
actual error should always be wrapped. 



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