private static void validateNoRemoteStorageForCompactedTopic(Map<?, ?> props) {
        String cleanupPolicy = props.get(TopicConfig.CLEANUP_POLICY_CONFIG).toString().toLowerCase(Locale.getDefault());
        if (cleanupPolicy.contains(TopicConfig.CLEANUP_POLICY_COMPACT)) {
            throw new ConfigException("Remote log storage is unsupported for the compacted topics");
        }
    }
Validates the values of the given properties. Should be called only by the broker.
The `props` supplied contains the topic-level configs,
The default values should be extracted from the KafkaConfig.
@param props The properties to be validated
storage/src/main/java/org/apache/kafka/storage/internals/log/LogConfig.java