private void addPartialResult(ListOffsetResult partialResult) {
            try {
                fetchedTimestampOffsets.putAll(partialResult.fetchedOffsets);
                partitionsToRetry.addAll(partialResult.partitionsToRetry);

                if (expectedResponses.decrementAndGet() == 0) {
                    ListOffsetResult result =
                            new ListOffsetResult(fetchedTimestampOffsets,
                                    partitionsToRetry);
                    resultFuture.complete(result);
                }
            } catch (RuntimeException e) {
                resultFuture.completeExceptionally(e);
            }
        }
Build OffsetsForLeaderEpoch request to send to a specific broker for the partitions and
positions to fetch. This also adds the request to the list of unsentRequests.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetsRequestManager.java