public void completeAllSyncFutures(
        Errors error
    ) {
        members.forEach((__, member) -> completeSyncFuture(
            member,
            new SyncGroupResponseData()
                .setErrorCode(error.code())
        ));
    }
Complete all the awaiting sync future with the give error.

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