@Override
    public void onMetadataUpdate(
        MetadataDelta delta,
        MetadataImage newImage,
        LoaderManifest manifest
    ) {
        enqueueMetadataChangeEvent(delta,
            newImage,
            manifest.provenance(),
            manifest.type() == LoaderManifestType.SNAPSHOT,
            NO_OP_HANDLER);
    }
Check that the migration driver is in the correct state for a given event. If the event causes
updates (i.e., to ZK or broker RPCs), also check that the event is for the current KRaft controller epoch.
metadata/src/main/java/org/apache/kafka/metadata/migration/KRaftMigrationDriver.java