public void completeAllJoinFutures(
        Errors error
    ) {
        members.forEach((memberId, member) -> completeJoinFuture(
            member,
            new JoinGroupResponseData()
                .setMemberId(memberId)
                .setErrorCode(error.code())
        ));
    }
Complete all the awaiting join future with the given error.

@param error  the error to complete the future with.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroup.java