dajac commented on code in PR #18848: URL: https://github.com/apache/kafka/pull/18848#discussion_r1954516380
########## group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java: ########## @@ -822,21 +834,60 @@ public CompletableFuture<DeleteGroupsResponseData.DeletableGroupResultCollection }); groupsByTopicPartition.forEach((topicPartition, groupList) -> { - CompletableFuture<DeleteGroupsResponseData.DeletableGroupResultCollection> future = - runtime.scheduleWriteOperation( - "delete-groups", - topicPartition, - Duration.ofMillis(config.offsetCommitTimeoutMs()), - coordinator -> coordinator.deleteGroups(context, groupList) - ).exceptionally(exception -> handleOperationException( - "delete-groups", - groupList, - exception, - (error, __) -> DeleteGroupsRequest.getErrorResultCollection(groupList, error), - log - )); - - futures.add(future); + CompletableFuture<DeleteGroupsResponseData.DeletableGroupResultCollection> shareFuture = deleteShareGroups(topicPartition, groupList) Review Comment: This is possible but it would require to make the persister work with the event based workflows. Basically, we can not wait on the future from the shard and there is no way at the moment to react to it neither. We could make it work by wrapping the persister into a class which understand how to interface with the runtime/shard but it is more complicated than doing it in the service layer. -- 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