private void throwIfNotActive() {
        if (!isActive.get()) {
            throw Errors.COORDINATOR_NOT_AVAILABLE.exception();
        }
    }
Throws CoordinatorNotAvailableException if the not active.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupCoordinatorService.java