private void chainFuture(
            final CompletableFuture<Map<TopicPartition, OffsetAndMetadata>> otherFuture) {
            this.future.whenComplete((r, t) -> {
                if (t != null) {
                    otherFuture.completeExceptionally(t);
                } else {
                    otherFuture.complete(r);
                }
            });
        }
Handle OffsetFetch response that has no group level errors. This will look for
partition level errors and fail the future accordingly, also recording a failed request
attempt. If no partition level errors are found, this will complete the future with the
offsets contained in the response, and record a successful request attempt.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/CommitRequestManager.java