public static MetaPropertiesVersion fromNumber(int number) {
        switch (number) {
            case 0: return V0;
            case 1: return V1;
            default: throw new RuntimeException("Unknown meta.properties version number " + number);
        }
    }
The KRaft version of meta.properties. Not all KRaft clusters have this version; some which
were migrated from ZK may have v0.
metadata/src/main/java/org/apache/kafka/metadata/properties/MetaPropertiesVersion.java