You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "jeffkbkim (via GitHub)" <gi...@apache.org> on 2023/07/25 21:01:49 UTC
[GitHub] [kafka] jeffkbkim commented on a diff in pull request #14056: KAFKA-14501: Implement Heartbeat protocol in new GroupCoordinator
jeffkbkim commented on code in PR #14056:
URL: https://github.com/apache/kafka/pull/14056#discussion_r1274116830
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java:
##########
@@ -368,9 +369,29 @@ public CompletableFuture<HeartbeatResponseData> heartbeat(
return FutureUtils.failedFuture(Errors.COORDINATOR_NOT_AVAILABLE.exception());
}
- return FutureUtils.failedFuture(Errors.UNSUPPORTED_VERSION.exception(
- "This API is not implemented yet."
- ));
+ if (!isGroupIdNotEmpty(request.groupId())) {
+ return CompletableFuture.completedFuture(new HeartbeatResponseData()
+ .setErrorCode(Errors.INVALID_GROUP_ID.code()));
+ }
+
+ return runtime.scheduleReadOperation("generic-group-heartbeat",
+ topicPartitionFor(request.groupId()),
+ (coordinator, __) -> coordinator.genericGroupHeartbeat(context, request)
Review Comment:
i wasn't too sure on this actually. how should we use the offset parameter, should we pass it down and use it to read the `groups` timeline map?
--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org