You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "jolshan (via GitHub)" <gi...@apache.org> on 2023/07/05 17:00:55 UTC
[GitHub] [kafka] jolshan commented on a diff in pull request #13961: KAFKA-14462; [21/N] Add CoordinatorTimer implementation in CoordinatorRuntime
jolshan commented on code in PR #13961:
URL: https://github.com/apache/kafka/pull/13961#discussion_r1253393155
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:
##########
@@ -146,14 +153,16 @@ GroupMetadataManager build() {
if (metadataImage == null) metadataImage = MetadataImage.EMPTY;
if (time == null) time = Time.SYSTEM;
- if (assignors == null || assignors.isEmpty()) {
+ if (timer == null)
+ throw new IllegalArgumentException("Timer must be set.");
Review Comment:
Should we throw illegal argument here but illegal state for the assignors?
--
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