public static void validateNames(Properties props) {
        List<String> names = configNames();
        for (Object name : props.keySet())
            if (!names.contains(name))
                throw new InvalidConfigurationException("Unknown topic config name: " + name);
    }
Check that property names are valid
storage/src/main/java/org/apache/kafka/storage/internals/log/LogConfig.java