private static List<FailedWal> getFailedWal(List<NodeRuntimeMetadata> allNodes) {
        List<FailedWal> result = allNodes.stream()
            .filter(NodeRuntimeMetadata::shouldFailover)
            .map(DefaultFailedWal::from)
            .collect(Collectors.toCollection(ArrayList::new));
        maybeRemoveControllerNode(allNodes, result);
        return result;
    }
Reset the failover context whose target node is not alive
core/src/main/java/kafka/automq/failover/FailoverControlManager.java