private boolean imageDoesNotContainAllBrokers(MetadataImage image, Set<Integer> brokerIds) {
        for (BrokerRegistration broker : image.cluster().brokers().values()) {
            if (broker.isMigratingZkBroker()) {
                brokerIds.remove(broker.id());
            }
        }
        return !brokerIds.isEmpty();
    }
A callback for when the migration state has been recovered from ZK. This is used to delay the installation of this
MetadataPublisher with MetadataLoader.
metadata/src/main/java/org/apache/kafka/metadata/migration/KRaftMigrationDriver.java