DL1231 commented on code in PR #21467:
URL: https://github.com/apache/kafka/pull/21467#discussion_r2844038557


##########
core/src/main/java/kafka/server/share/ShareFetchUtils.java:
##########
@@ -275,6 +276,20 @@ public static int 
recordLockDurationMsOrDefault(GroupConfigManager groupConfigMa
         return defaultValue;
     }
 
+    /**
+     * The method is used to check if renew acknowledge is enabled for the 
group. If the group config
+     * is present, then the value from the group config is used. Otherwise, 
the default value is used.
+     *
+     * @param groupConfigManager The group config manager.
+     * @param groupId The group id for which the renew acknowledge enable is 
to be checked.
+     * @return true if renew acknowledge is enabled for the group, false 
otherwise.
+     */
+    public static boolean isRenewAcknowledgeEnabled(GroupConfigManager 
groupConfigManager, String groupId) {

Review Comment:
    `ShareFetchUtils` has other helpers following the same pattern 
(`recordLockDurationMsOrDefault`, `deliveryCountLimitOrDefault`),  moving just 
this one would be inconsistent, and moving all of them would add
   share-specific surface to `GroupConfigManager`, which currently has a clean 
CRUD-style API in the group-coordinator module.



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