liuliuOD commented on code in PR #23856:
URL: https://github.com/apache/kafka/pull/23856#discussion_r4347162759
##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java:
##########
@@ -6942,7 +6942,15 @@ public void onLoaded() {
log.info("Loaded consumer group {} with {} members.",
groupId, consumerGroup.members().size());
consumerGroup.members().forEach((memberId, member) -> {
log.debug("Loaded member {} in consumer group {}.",
memberId, groupId);
- scheduleConsumerGroupSessionTimeout(groupId, memberId);
+
+ if (member.useClassicProtocol() &&
member.classicProtocolSessionTimeout().isPresent()) {
+ scheduleConsumerGroupSessionTimeout(
+ groupId,
+ memberId,
+ member.classicProtocolSessionTimeout().get());
Review Comment:
Nice, this looks much cleaner with `orElse()`. Good change!
--
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]