mjsax commented on code in PR #23519:
URL: https://github.com/apache/kafka/pull/23519#discussion_r4363656546


##########
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/streams/AssignmentRefinerImpl.java:
##########
@@ -871,6 +990,15 @@ static boolean isCaughtUp(
         return endOffset - offset <= acceptableRecoveryLag;
     }
 
+    /**
+     * Whether the member has restored any of the task: it reports a position 
for it, and that position is not the
+     * cap the client reports before a restore has begun.
+     */
+    private static boolean hasRestoredSomething(final MemberTaskOffsets 
memberTaskOffsets, final TaskId task) {
+        final Long offset = offsetOf(memberTaskOffsets.taskOffsets(), task);
+        return offset != null && offset != Long.MAX_VALUE;

Review Comment:
   https://github.com/apache/kafka/pull/23942



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